class RuboCop::AST::VarNode

the AST, making its methods available to all assignment nodes within RuboCop.
This will be used in place of a plain node when the builder constructs
A node extension for ‘lvar`, `ivar`, `cvar` and `gvar` nodes.

def name

Returns:
  • (Symbol) - The name of the variable.
def name
  node_parts[0]
end