Exception: Cms::Behaviors::Pagination::InvalidPage
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Cms::Behaviors::Pagination::InvalidPage
- Defined in:
- lib/cms/behaviors/pagination.rb
Instance Method Summary collapse
-
#initialize(page, page_num) ⇒ InvalidPage
constructor
A new instance of InvalidPage.
Constructor Details
#initialize(page, page_num) ⇒ InvalidPage
Returns a new instance of InvalidPage.
15 16 17 |
# File 'lib/cms/behaviors/pagination.rb', line 15 def initialize(page, page_num) super "#{page.inspect} given as value, which translates to '#{page_num}' as page number" end |