Class: Melbourne::AST::RangeExclude

Inherits:
Range
  • Object
show all
Defined in:
lib/melbourne/ast/literals.rb

Overview

A range literal that excludes the end as in:

1...3

Instance Attribute Summary

Attributes inherited from Range

#finish, #start

Attributes inherited from Node

#line

Instance Method Summary collapse

Methods inherited from Node

#ascii_graph

Constructor Details

#initialize(line, start, finish) ⇒ RangeExclude

Returns a new instance of RangeExclude.



157
158
159
160
161
# File 'lib/melbourne/ast/literals.rb', line 157

def initialize(line, start, finish)
  @line = line
  @start = start
  @finish = finish
end