Method: Transpec::AST::Node#each_child_node

Defined in:
lib/transpec/ast/node.rb

#each_child_nodeObject



43
44
45
46
47
48
49
50
51
52
# File 'lib/transpec/ast/node.rb', line 43

def each_child_node
  return to_enum(__method__) unless block_given?

  children.each do |child|
    next unless child.is_a?(self.class)
    yield child
  end

  self
end