Class: LibRubyParser::Nodes::Masgn
- Inherits:
-
LibRubyParser::Node
- Object
- LibRubyParser::Node
- LibRubyParser::Nodes::Masgn
- Defined in:
- lib/lib-ruby-parser/nodes.rb
Overview
Represents mass-assignment (i.e. foo, bar = 1, 2
)
Instance Attribute Summary collapse
-
#expression_l ⇒ Loc
readonly
Location of the full expression.
-
#lhs ⇒ Node
readonly
Left hand statement of the assignment.
-
#operator_l ⇒ Loc
readonly
Location of the
=
operator. -
#rhs ⇒ Node
readonly
Left hand statement of the assignment.
Instance Attribute Details
#expression_l ⇒ Loc (readonly)
Location of the full expression
foo, bar = 1, 2
~~~~~~~~~~~~~~~
2574 2575 2576 |
# File 'lib/lib-ruby-parser/nodes.rb', line 2574 def expression_l @expression_l end |
#lhs ⇒ Node (readonly)
Left hand statement of the assignment
2552 2553 2554 |
# File 'lib/lib-ruby-parser/nodes.rb', line 2552 def lhs @lhs end |
#operator_l ⇒ Loc (readonly)
Location of the =
operator
foo, bar = 1, 2
~
2565 2566 2567 |
# File 'lib/lib-ruby-parser/nodes.rb', line 2565 def operator_l @operator_l end |
#rhs ⇒ Node (readonly)
Left hand statement of the assignment
2556 2557 2558 |
# File 'lib/lib-ruby-parser/nodes.rb', line 2556 def rhs @rhs end |