class RuboCop::AST::DefNode

def method_name

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