Module: Enumerable
- Defined in:
- lib/fortschritt/enumerable.rb
Instance Method Summary collapse
Instance Method Details
#with_fortschritt(**opts, &block) ⇒ Object
2 3 4 5 |
# File 'lib/fortschritt/enumerable.rb', line 2 def with_fortschritt(**opts, &block) Fortschritt.init(count, **opts) block ? each(&block) : self end |