Class ActionController::Pagination::Paginator::Window
In: lib/action_controller/pagination.rb
Parent: Object

A class for representing ranges around a given page.

Methods

new   padding=   pages   to_a  

Attributes

first  [R] 
last  [R] 
padding  [R] 
page  [R] 
paginator  [R] 

Public Class methods

Creates a new Window object for the given page with the specified padding.

Public Instance methods

Sets the window’s padding (the number of pages on either side of the window page).

Returns an array of Page objects in the current window.

to_a()

Alias for pages

[Validate]