class GenSid::Counter

Attributes

current_value[R]
initial_value[R]
skip_first_value[RW]

Public Class Methods

new(initial_value) click to toggle source
# File lib/gen_sid/counter.rb, line 9
def initialize(initial_value)
  @initial_value = initial_value
  @previous_value = nil
  @current_value = nil
  @skip_first_value = false
end

Public Instance Methods

next_value() click to toggle source
# File lib/gen_sid/counter.rb, line 16
def next_value
  raise "Method next_value must be implemented by sub class"
end