Class: Melbourne::AST::Range
Overview
A range literal as in:
1..3
Direct Known Subclasses
Instance Attribute Summary collapse
-
#finish ⇒ Object
The finish of the range.
-
#start ⇒ Object
The start of the range.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, start, finish) ⇒ Range
constructor
A new instance of Range.
Methods inherited from Node
Constructor Details
#initialize(line, start, finish) ⇒ Range
Returns a new instance of Range.
143 144 145 146 147 |
# File 'lib/melbourne/ast/literals.rb', line 143 def initialize(line, start, finish) @line = line @start = start @finish = finish end |
Instance Attribute Details
#finish ⇒ Object
The finish of the range
141 142 143 |
# File 'lib/melbourne/ast/literals.rb', line 141 def finish @finish end |
#start ⇒ Object
The start of the range
137 138 139 |
# File 'lib/melbourne/ast/literals.rb', line 137 def start @start end |