class Sitemapper::Paginator

Defined in:

sitemapper/paginator.cr

Constant Summary

DEFAULT_LIMIT = 500

Constructors

Instance Method Summary

Constructor Detail

def self.new(limit : Int32 = DEFAULT_LIMIT) #

[View source]

Instance Method Detail

def add(path : String, options : SitemapOptions) #

[View source]
def items(current_page : Int32) #

[View source]
def paths : Array(Tuple(String, SitemapOptions)) #

[View source]
def paths=(paths : Array(Tuple(String, SitemapOptions))) #

[View source]
def total_pages : Int32 #

This is calculated each time since you could get 1 the first time, then add to it and get 2 the second


[View source]