Class: LibRubyParser::Nodes::Erange

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

Overview

Represents range literal with excluded end (i.e. 1...3)

Instance Attribute Summary collapse

Instance Attribute Details

#expression_lLoc (readonly)

Location of the full expression

1...3
~~~~~

Returns:



1411
1412
1413
# File 'lib/lib-ruby-parser/nodes.rb', line 1411

def expression_l
  @expression_l
end

#leftNode? (readonly)

Begin of the range, None if range has no begin (i.e ...42)

Returns:



1389
1390
1391
# File 'lib/lib-ruby-parser/nodes.rb', line 1389

def left
  @left
end

#operator_lLoc (readonly)

Location of the ... operator

1...3
 ~~~

Returns:



1402
1403
1404
# File 'lib/lib-ruby-parser/nodes.rb', line 1402

def operator_l
  @operator_l
end

#rightNode? (readonly)

End of the range, None if range has no end (i.e 42...)

Returns:



1393
1394
1395
# File 'lib/lib-ruby-parser/nodes.rb', line 1393

def right
  @right
end