Class: LibRubyParser::Nodes::Or

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

Overview

Represents foo || bar (or foo or bar) statement.

Instance Attribute Summary collapse

Instance Attribute Details

#expression_lLoc (readonly)

Location of the full expression

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

Returns:



3158
3159
3160
# File 'lib/lib-ruby-parser/nodes.rb', line 3158

def expression_l
  @expression_l
end

#lhsNode (readonly)

Left hand statement

Returns:



3136
3137
3138
# File 'lib/lib-ruby-parser/nodes.rb', line 3136

def lhs
  @lhs
end

#operator_lLoc (readonly)

Location of the ||/or operator

foo || bar
    ~~

Returns:



3149
3150
3151
# File 'lib/lib-ruby-parser/nodes.rb', line 3149

def operator_l
  @operator_l
end

#rhsNode (readonly)

Right hand statement

Returns:



3140
3141
3142
# File 'lib/lib-ruby-parser/nodes.rb', line 3140

def rhs
  @rhs
end