Module: Enumerable
- Defined in:
- lib/folio/core_ext/enumerable.rb
Overview
Extends any Enumerable to act like a Folio::Ordinal. Important: the source Enumerable is still not a Folio::Ordinal (it’s not in the ancestors list). Instead, any Enumerable can be decorated via its new ‘pagination_decorated` method, and all folio methods are forwarded to that decorated version.
Instance Method Summary collapse
Instance Method Details
#pagination_decorated ⇒ Object
42 43 44 |
# File 'lib/folio/core_ext/enumerable.rb', line 42 def pagination_decorated @pagination_decorated ||= Folio::Enumerable::Decorator.new(self) end |