# File lib/astrolabe/node.rb, line 242 def visit_descendants_with_types(types, &block) children.each do |child| next unless child.is_a?(Node) yield child if types.include?(child.type) child.visit_descendants_with_types(types, &block) end end