Class: LibRubyParser::Nodes::OpAsgn
- Inherits:
-
LibRubyParser::Node
- Object
- LibRubyParser::Node
- LibRubyParser::Nodes::OpAsgn
- Defined in:
- lib/lib-ruby-parser/nodes.rb
Overview
Represents an operation with assignment (e.g. a += 1
)
Instance Attribute Summary collapse
-
#expression_l ⇒ Loc
readonly
Location of the operator.
-
#operator ⇒ String
readonly
Operator, can be one of: 1.
-
#operator_l ⇒ Loc
readonly
Location of the operator.
-
#recv ⇒ Node
readonly
Left hand statement of the assignment.
-
#value ⇒ Node
readonly
Right hand statement of the assignment.
Instance Attribute Details
#expression_l ⇒ Loc (readonly)
Location of the operator
a.b <<= c
~~~~~~~~~
3089 3090 3091 |
# File 'lib/lib-ruby-parser/nodes.rb', line 3089 def expression_l @expression_l end |
#operator ⇒ String (readonly)
Operator, can be one of:
+=
-=
*=
/=
|=
&=
>>=
<<=
%=
^=
**=
3067 3068 3069 |
# File 'lib/lib-ruby-parser/nodes.rb', line 3067 def operator @operator end |
#operator_l ⇒ Loc (readonly)
Location of the operator
a.b <<= c
~~~
3080 3081 3082 |
# File 'lib/lib-ruby-parser/nodes.rb', line 3080 def operator_l @operator_l end |
#recv ⇒ Node (readonly)
Left hand statement of the assignment
3052 3053 3054 |
# File 'lib/lib-ruby-parser/nodes.rb', line 3052 def recv @recv end |
#value ⇒ Node (readonly)
Right hand statement of the assignment
3071 3072 3073 |
# File 'lib/lib-ruby-parser/nodes.rb', line 3071 def value @value end |