Class: LibRubyParser::Nodes::IFlipFlop

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

Overview

Represents inclusive flip-flop (i.e. in if foo..bar; end)

Instance Attribute Summary collapse

Instance Attribute Details

#expression_lLoc (readonly)

Location of the full expression

if foo..bar; end
   ~~~~~~~~

Returns:



1900
1901
1902
# File 'lib/lib-ruby-parser/nodes.rb', line 1900

def expression_l
  @expression_l
end

#leftNode? (readonly)

Left part of the flip-flop. None if based on a range without begin (..bar)

Returns:



1878
1879
1880
# File 'lib/lib-ruby-parser/nodes.rb', line 1878

def left
  @left
end

#operator_lLoc (readonly)

Location of the .. operator

if foo..bar; end
      ~~

Returns:



1891
1892
1893
# File 'lib/lib-ruby-parser/nodes.rb', line 1891

def operator_l
  @operator_l
end

#rightNode? (readonly)

Right part of the flip-flop. None if based on a range without end (foo..)

Returns:



1882
1883
1884
# File 'lib/lib-ruby-parser/nodes.rb', line 1882

def right
  @right
end