class ABNF::RangeWithInfiniteUpperBound

Public Class Methods

new(first) click to toggle source
# File lib/abnf.rb, line 12
def initialize(first)
  @first = first
end

Public Instance Methods

first() click to toggle source
# File lib/abnf.rb, line 16
def first
  @first
end
until_end() { |i| ... } click to toggle source
# File lib/abnf.rb, line 20
def until_end # &blk
  i = 0

  while true
    yield i
    i += 1
  end
end