Class: LibRubyParser::Nodes::Masgn

Inherits:
LibRubyParser::Node show all
Defined in:
lib/lib-ruby-parser/nodes.rb

Overview

Represents mass-assignment (i.e. foo, bar = 1, 2)

Instance Attribute Summary collapse

Instance Attribute Details

#expression_lLoc (readonly)

Location of the full expression

foo, bar = 1, 2
~~~~~~~~~~~~~~~

Returns:



2574
2575
2576
# File 'lib/lib-ruby-parser/nodes.rb', line 2574

def expression_l
  @expression_l
end

#lhsNode (readonly)

Left hand statement of the assignment

Returns:



2552
2553
2554
# File 'lib/lib-ruby-parser/nodes.rb', line 2552

def lhs
  @lhs
end

#operator_lLoc (readonly)

Location of the = operator

foo, bar = 1, 2
         ~

Returns:



2565
2566
2567
# File 'lib/lib-ruby-parser/nodes.rb', line 2565

def operator_l
  @operator_l
end

#rhsNode (readonly)

Left hand statement of the assignment

Returns:



2556
2557
2558
# File 'lib/lib-ruby-parser/nodes.rb', line 2556

def rhs
  @rhs
end