Class: Pagify::NullPager
- Inherits:
-
BasicPager
- Object
- BasicPager
- Pagify::NullPager
- Includes:
- Singleton
- Defined in:
- lib/pagify/pager/null.rb
Overview
a null paginator that stubs any page into a null page.
Instance Attribute Summary
Attributes inherited from BasicPager
Instance Method Summary collapse
-
#initialize ⇒ NullPager
constructor
A new instance of NullPager.
Methods inherited from BasicPager
#==, #each, #entries_count, #offset, #page, #page_exists?, #size, #to_a
Constructor Details
#initialize ⇒ NullPager
Returns a new instance of NullPager.
6 7 8 |
# File 'lib/pagify/pager/null.rb', line 6 def initialize super(:fetcher => lambda{|*a|[]}, :counter => lambda{0}) end |