Class: Pagify::NullPager

Inherits:
BasicPager show all
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

#counter, #fetcher, #opts

Instance Method Summary collapse

Methods inherited from BasicPager

#==, #each, #entries_count, #offset, #page, #page_exists?, #size, #to_a

Constructor Details

#initializeNullPager

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