class RuboCop::AST::DefNode

def method_name

Returns:
  • (Symbol) - the name of the defined method
def method_name
  children[-3]
end