Class: LibRubyParser::Nodes::Or
- Inherits:
-
LibRubyParser::Node
- Object
- LibRubyParser::Node
- LibRubyParser::Nodes::Or
- Defined in:
- lib/lib-ruby-parser/nodes.rb
Overview
Represents foo || bar
(or foo or bar
) statement.
Instance Attribute Summary collapse
-
#expression_l ⇒ Loc
readonly
Location of the full expression.
-
#lhs ⇒ Node
readonly
Left hand statement.
-
#operator_l ⇒ Loc
readonly
Location of the
||
/or
operator. -
#rhs ⇒ Node
readonly
Right hand statement.
Instance Attribute Details
#expression_l ⇒ Loc (readonly)
Location of the full expression
foo || bar
~~~~~~~~~~
3158 3159 3160 |
# File 'lib/lib-ruby-parser/nodes.rb', line 3158 def expression_l @expression_l end |
#lhs ⇒ Node (readonly)
Left hand statement
3136 3137 3138 |
# File 'lib/lib-ruby-parser/nodes.rb', line 3136 def lhs @lhs end |
#operator_l ⇒ Loc (readonly)
Location of the ||
/or
operator
foo || bar
~~
3149 3150 3151 |
# File 'lib/lib-ruby-parser/nodes.rb', line 3149 def operator_l @operator_l end |
#rhs ⇒ Node (readonly)
Right hand statement
3140 3141 3142 |
# File 'lib/lib-ruby-parser/nodes.rb', line 3140 def rhs @rhs end |