Class: L43Rmap::Ast::FieldRange
Instance Method Summary collapse
-
#initialize(first, last) ⇒ FieldRange
constructor
A new instance of FieldRange.
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 |