module Granite::Paginate
Overview
Pagination support for Granite.
Defined in:
Constant Summary
-
VERSION =
{{ (`shards version \"/media/data/lab/dev/work/projects/nicolab/crystal/granite-paginate/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.