Method: RuboCop::AST::DefNode#method_name

Defined in:
lib/rubocop/ast/node/def_node.rb

#method_nameSymbol

The name of the defined method as a symbol.

Returns:

  • (Symbol)

    the name of the defined method



33
34
35
# File 'lib/rubocop/ast/node/def_node.rb', line 33

def method_name
  children[-3]
end