Class: LibRubyParser::Nodes::EFlipFlop
- Inherits:
-
LibRubyParser::Node
- Object
- LibRubyParser::Node
- LibRubyParser::Nodes::EFlipFlop
- Defined in:
- lib/lib-ruby-parser/nodes.rb
Overview
Represents exclusive 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
~~~~~~~~~
1313 1314 1315 |
# File 'lib/lib-ruby-parser/nodes.rb', line 1313 def expression_l @expression_l end |
#left ⇒ Node? (readonly)
Left part of the flip-flop. None
if based on a range without begin (...bar
)
1291 1292 1293 |
# File 'lib/lib-ruby-parser/nodes.rb', line 1291 def left @left end |
#operator_l ⇒ Loc (readonly)
Location of the ...
operator
if foo...bar; end
~~~
1304 1305 1306 |
# File 'lib/lib-ruby-parser/nodes.rb', line 1304 def operator_l @operator_l end |
#right ⇒ Node? (readonly)
Right part of the flip-flop. None
if based on a range without end (foo...
)
1295 1296 1297 |
# File 'lib/lib-ruby-parser/nodes.rb', line 1295 def right @right end |