class RuboCop::AST::MlhsNode
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 ‘mlhs` nodes.
def assignments
-
(Array
- the assignment nodes of the multiple assignment LHS)
def assignments child_nodes.flat_map do |node| if node.splat_type? node.child_nodes.first elsif node.mlhs_type? node.assignments else node end end end