Class: LibRubyParser::Nodes::IFlipFlop
- Inherits:
-
LibRubyParser::Node
- Object
- LibRubyParser::Node
- LibRubyParser::Nodes::IFlipFlop
- Defined in:
- lib/lib-ruby-parser/nodes.rb
Overview
Represents inclusive flip-flop (i.e. in if foo..bar; end
)
Instance Attribute Summary collapse
-
#expression_l ⇒ Loc
readonly
Location of the full expression.
-
#left ⇒ Node?
readonly
Left part of the flip-flop.
-
#operator_l ⇒ Loc
readonly
Location of the
..
operator. -
#right ⇒ Node?
readonly
Right part of the flip-flop.
Instance Attribute Details
#expression_l ⇒ Loc (readonly)
Location of the full expression
if foo..bar; end
~~~~~~~~
1900 1901 1902 |
# File 'lib/lib-ruby-parser/nodes.rb', line 1900 def expression_l @expression_l end |
#left ⇒ Node? (readonly)
Left part of the flip-flop. None
if based on a range without begin (..bar
)
1878 1879 1880 |
# File 'lib/lib-ruby-parser/nodes.rb', line 1878 def left @left end |
#operator_l ⇒ Loc (readonly)
Location of the ..
operator
if foo..bar; end
~~
1891 1892 1893 |
# File 'lib/lib-ruby-parser/nodes.rb', line 1891 def operator_l @operator_l end |
#right ⇒ Node? (readonly)
Right part of the flip-flop. None
if based on a range without end (foo..
)
1882 1883 1884 |
# File 'lib/lib-ruby-parser/nodes.rb', line 1882 def right @right end |