Class: LibRubyParser::Nodes::OrAsgn

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

Overview

Represents lhs ||= rhs assignment

Instance Attribute Summary collapse

Instance Attribute Details

#expression_lLoc (readonly)

Location of the full expression

foo ||= bar
~~~~~~~~~~~

Returns:



3188
3189
3190
# File 'lib/lib-ruby-parser/nodes.rb', line 3188

def expression_l
  @expression_l
end

#operator_lLoc (readonly)

Location of the ||= operator

foo ||= bar
    ~~~

Returns:



3179
3180
3181
# File 'lib/lib-ruby-parser/nodes.rb', line 3179

def operator_l
  @operator_l
end

#recvNode (readonly)

Left hand statement

Returns:



3166
3167
3168
# File 'lib/lib-ruby-parser/nodes.rb', line 3166

def recv
  @recv
end

#valueNode (readonly)

Right hand statement

Returns:



3170
3171
3172
# File 'lib/lib-ruby-parser/nodes.rb', line 3170

def value
  @value
end