struct

Ori::Paginator

Inherits Struct < Value < Object

Constructors

new(per_page : Int32 = 10, type : Type = Type::Arabic, active_dot : String = "•", inactive_dot : String = "○")
Source

Instance methods

active_dot
Source
inactive_dot
Source
items_on_page(total_items : Int32) : Int32
Source
next_page
Source
on_first_page?
Source
on_last_page?
Source
page
Source
per_page
Source
prev_page
Source
set_total_pages(items : Int32) : Int32
Source
slice_bounds(total_items : Int32) : Tuple(Int32, Int32)
Source
total_pages
Source
type
Source
view
Source

Nested types