class RuboCop::AST::Node

def child_nodes

Returns:
  • (Array) - an array of child nodes
def child_nodes
  each_child_node.to_a
end