module Enumerable
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.
Public Instance Methods
pagination_decorated()
click to toggle source
# File lib/folio/core_ext/enumerable.rb, line 42 def pagination_decorated @pagination_decorated ||= Folio::Enumerable::Decorator.new(self) end