Class: LibRubyParser::Nodes::Mlhs
- Inherits:
-
LibRubyParser::Node
- Object
- LibRubyParser::Node
- LibRubyParser::Nodes::Mlhs
- 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
-
#begin_l ⇒ Loc?
readonly
Location of the open parenthesis.
-
#end_l ⇒ Loc?
readonly
Location of the closing parenthesis.
-
#expression_l ⇒ Loc
readonly
Location of the full expression.
-
#items ⇒ ::Array<Node>
readonly
A list of items that are assigned.
Instance Attribute Details
#begin_l ⇒ Loc? (readonly)
Location of the open parenthesis
(a, b) = 1, 2
~
None
if there are no parentheses
2884 2885 2886 |
# File 'lib/lib-ruby-parser/nodes.rb', line 2884 def begin_l @begin_l end |
#end_l ⇒ Loc? (readonly)
Location of the closing parenthesis
(a, b) = 1, 2
~
None
if there are no parentheses
2895 2896 2897 |
# File 'lib/lib-ruby-parser/nodes.rb', line 2895 def end_l @end_l end |
#expression_l ⇒ Loc (readonly)
Location of the full expression
(a, b) = 1, 2
~~~~~~
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
2873 2874 2875 |
# File 'lib/lib-ruby-parser/nodes.rb', line 2873 def items @items end |