Module: Enumerable

Included in:
Webby::Paginator, Webby::Paginator::Page
Defined in:
lib/webby/core_ext/enumerable.rb

Instance Method Summary collapse

Instance Method Details

#injecting(initial) ⇒ Object



4
5
6
7
8
# File 'lib/webby/core_ext/enumerable.rb', line 4

def injecting( initial )
  inject(initial) do |memo, obj|
    yield(memo, obj); memo
  end
end