Class: LibRubyParser::Nodes::Mlhs

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

Overview

Represents left hand statement of the mass-assignment (i.e. foo, bar in foo, bar = 1, 2)

Instance Attribute Summary collapse

Instance Attribute Details

#begin_lLoc? (readonly)

Location of the open parenthesis

(a, b) = 1, 2
~

None if there are no parentheses

Returns:



2884
2885
2886
# File 'lib/lib-ruby-parser/nodes.rb', line 2884

def begin_l
  @begin_l
end

#end_lLoc? (readonly)

Location of the closing parenthesis

(a, b) = 1, 2
     ~

None if there are no parentheses

Returns:



2895
2896
2897
# File 'lib/lib-ruby-parser/nodes.rb', line 2895

def end_l
  @end_l
end

#expression_lLoc (readonly)

Location of the full expression

(a, b) = 1, 2
~~~~~~

Returns:



2904
2905
2906
# File 'lib/lib-ruby-parser/nodes.rb', line 2904

def expression_l
  @expression_l
end

#items::Array<Node> (readonly)

A list of items that are assigned

Returns:



2873
2874
2875
# File 'lib/lib-ruby-parser/nodes.rb', line 2873

def items
  @items
end