Sha256: f1f0ff6b09e208838d47e7b73e7c15ae90e931d4e15f46ad62c34f5e4a035f13

Contents?: true

Size: 308 Bytes

Versions: 7

Compression:

Stored size: 308 Bytes

Contents

module Pagify
  # a null paginator that stubs any page into a null page.
  class NullPager < BasicPager
    include Singleton
    def initialize
      super(:fetcher => lambda{|*a|[]}, :counter => lambda{0})
    end

    private
    def normalize_page n
      0
    end
  end # of NullPager
end # of Pagify

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
godfat-pagify-0.6.1 lib/pagify/pager/null.rb
godfat-pagify-0.6.2 lib/pagify/pager/null.rb
pagify-0.8.0 lib/pagify/pager/null.rb
pagify-0.7.1 lib/pagify/pager/null.rb
pagify-0.7.0 lib/pagify/pager/null.rb
pagify-0.6.2 lib/pagify/pager/null.rb
pagify-0.6.1 lib/pagify/pager/null.rb