Class: Folio::Ordinal::BasicPage
- Includes:
- Page
- Defined in:
- lib/folio/ordinal/page.rb
Instance Attribute Summary
Attributes included from Page
#current_page, #first_page, #next_page, #ordinal_pages, #previous_page, #total_entries
Instance Method Summary collapse
Methods included from Page
create, #current_page=, #first_page, #last_page, #next_page, #next_page=, #offset, #ordinal_pages, #out_of_bounds?, #previous_page
Methods included from Page
create, #last_page, #last_page=, #total_pages
Methods included from PerPage
Methods inherited from Array
Instance Method Details
#replace(array) ⇒ Object
87 88 89 90 91 92 93 |
# File 'lib/folio/ordinal/page.rb', line 87 def replace(array) result = super if total_entries.nil? and length < per_page and (current_page == 1 or length > 0) self.total_entries = offset + length end result end |