Class: LibRubyParser::Nodes::Irange

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

Overview

Represents inclusive range (i.e. 2..4)

Instance Attribute Summary collapse

Instance Attribute Details

#expression_lLoc (readonly)

Location of the full expression

2..4
~~~~

Returns:



2187
2188
2189
# File 'lib/lib-ruby-parser/nodes.rb', line 2187

def expression_l
  @expression_l
end

#leftNode? (readonly)

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

Returns:



2165
2166
2167
# File 'lib/lib-ruby-parser/nodes.rb', line 2165

def left
  @left
end

#operator_lLoc (readonly)

Location of the .. operator

2..4
 ~~

Returns:



2178
2179
2180
# File 'lib/lib-ruby-parser/nodes.rb', line 2178

def operator_l
  @operator_l
end

#rightNode? (readonly)

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

Returns:



2169
2170
2171
# File 'lib/lib-ruby-parser/nodes.rb', line 2169

def right
  @right
end