module Folio::PerPageIncluder
this funny pattern is so that if a module (e.g. Folio::Ordinal
) includes this module, it won’t get the per_page attribute, but will still be able to bestow that attribute on any class that includes it.
Public Instance Methods
included(klass)
click to toggle source
# File lib/folio.rb, line 67 def included(klass) if klass.is_a?(Class) klass.extend ::Folio::PerPage else klass.extend ::Folio::PerPageIncluder end end