Method: Counter#initialize

Defined in:
lib/functional.rb

#initialize(first = nil, step = nil) ⇒ Counter

Returns a new instance of Counter.



32
33
34
# File 'lib/functional.rb', line 32

def initialize first = nil, step = nil
	@c, @step = first || 0, step || 1
end