class RuboCop::AST::Node

def descendants

Returns:
  • (Array) - an array of descendant nodes
def descendants
  each_descendant.to_a
end