Module: WillPaginate

### Home Classes Methods

### In Files

- lib/will_paginate.rb
- lib/will_paginate/active_record.rb
- lib/will_paginate/collection.rb
- lib/will_paginate/data_mapper.rb
- lib/will_paginate/i18n.rb
- lib/will_paginate/page_number.rb
- lib/will_paginate/per_page.rb
- lib/will_paginate/railtie.rb
- lib/will_paginate/sequel.rb
- lib/will_paginate/version.rb
- lib/will_paginate/view_helpers/action_view.rb
- lib/will_paginate/view_helpers/link_renderer.rb
- lib/will_paginate/view_helpers/link_renderer_base.rb
- lib/will_paginate/view_helpers/merb.rb
- lib/will_paginate/view_helpers/sinatra.rb

### Namespace

- MODULE WillPaginate::ActionView
- MODULE WillPaginate::ActiveRecord
- MODULE WillPaginate::CollectionMethods
- MODULE WillPaginate::DataMapper
- MODULE WillPaginate::Deprecation
- MODULE WillPaginate::I18n
- MODULE WillPaginate::InvalidPage
- MODULE WillPaginate::Merb
- MODULE WillPaginate::PerPage
- MODULE WillPaginate::SequelMethods
- MODULE WillPaginate::Sinatra
- MODULE WillPaginate::ViewHelpers
- CLASS WillPaginate::Collection
- CLASS WillPaginate::PageNumber
- CLASS WillPaginate::Railtie

### Methods

- ::PageNumber
- #===

### Class/Module Index

Quicksearch

- WillPaginate
- WillPaginate::ActionView
- WillPaginate::ActionView::LinkRenderer
- WillPaginate::ActiveRecord
- WillPaginate::ActiveRecord::BaseMethods
- WillPaginate::ActiveRecord::Pagination
- WillPaginate::ActiveRecord::RelationMethods
- WillPaginate::Collection
- WillPaginate::CollectionMethods
- WillPaginate::DataMapper
- WillPaginate::DataMapper::CollectionMethods
- WillPaginate::DataMapper::Pagination
- WillPaginate::Deprecation
- WillPaginate::Deprecation::Hash
- WillPaginate::I18n
- WillPaginate::InvalidPage
- WillPaginate::Merb
- WillPaginate::Merb::LinkRenderer
- WillPaginate::PageNumber
- WillPaginate::PerPage
- WillPaginate::PerPage::Inheritance
- WillPaginate::Railtie
- WillPaginate::Railtie::ControllerRescuePatch
- WillPaginate::Railtie::ShowExceptionsPatch
- WillPaginate::SequelMethods
- WillPaginate::Sinatra
- WillPaginate::Sinatra::Helpers
- WillPaginate::Sinatra::LinkRenderer
- WillPaginate::ViewHelpers
- WillPaginate::ViewHelpers::LinkRenderer
- WillPaginate::ViewHelpers::LinkRendererBase
- Array
- Object

No matching classes.

# WillPaginate

You will paginate!

### Public Class Methods

PageNumber(value, name = 'page') click to toggle source

An idemptotent coercion method

    # File lib/will_paginate/page_number.rb, line 51
    def self.PageNumber(value, name = 'page')
      case value
      when PageNumber then value
      else PageNumber.new(value, name)
      end
    end

### Public Instance Methods

===(obj) click to toggle source

    # File lib/will_paginate/page_number.rb, line 45
    def ===(obj)
      obj.instance_of? PageNumber or super
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.