Class: L43Rmap::Ast::FieldRange

Inherits:
Node
  • Object
show all
Defined in:
lib/l43_rmap/ast.rb

Instance Method Summary collapse

Constructor Details

#initialize(first, last) ⇒ FieldRange

Returns a new instance of FieldRange.



17
18
19
20
21
# File 'lib/l43_rmap/ast.rb', line 17

def initialize(first, last)
  first = first.pred if first > 0
  last = last.pred if last > 0
  super(value: first..last, type: :field_range)
end