Module: CountedEach
- Included in:
- Array
- Defined in:
- lib/counted_each.rb
Defined Under Namespace
Modules: Util
Classes: Counter
Constant Summary
collapse
- Config =
Class.new do
attr_accessor :output
def initialize
self.output = STDERR
end
end.new
Instance Method Summary
collapse
Instance Method Details
#counted_each(*args, &block) ⇒ Object
#counted_each_with_index(*args, &block) ⇒ Object
6
7
8
|
# File 'lib/counted_each.rb', line 6
def counted_each_with_index(*args, &block)
::CountedEach::Counter.new(self).iterate(true, &block)
end
|