class RuboCop::AST::CasgnNode

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 ‘casgn` nodes.

def expression

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