module Granite::Paginate
Overview
Pagination support for Granite.
Defined in:
granite-paginate.crConstant Summary
-
VERSION =
{{ (`shards version \"/srv/crystaldoc.info/github-Nicolab-granite-paginate-v1.1.1/src\"`).chomp.stringify.downcase }}
Class Method Summary
-
.ensure_page(offset : Int32 | String | Nil = 0, limit : Int32 | String | Nil = 20) : Tuple(Int32, Int32)
Ensures good numbers for the pagination.
Class Method Detail
def self.ensure_page(offset : Int32 | String | Nil = 0, limit : Int32 | String | Nil = 20) : Tuple(Int32, Int32)
#
Ensures good numbers for the pagination.