class RuboCop::AST::Procarg0Node
A node extension for `procarg0` nodes. This will be used in place of a plain node when the builder constructs the AST
, making its methods available to all `arg` nodes within RuboCop
.
Public Instance Methods
name()
click to toggle source
Returns the name of an argument.
@return [Symbol, nil] the name of the argument
# File lib/rubocop/ast/node/procarg0_node.rb, line 12 def name node_parts[0].name end