class RuboCop::AST::AsgnNode

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 ‘lvasgn`, `ivasgn`, `cvasgn`, and `gvasgn` nodes.

def expression

Returns:
  • (Node) - the expression being assigned.
def expression
  node_parts[1]
end

def name

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