Sha256: bf0e55d59b8fd18319c0801515194686e222147a7a757a58fe3aec3744905de6
Contents?: true
Size: 331 Bytes
Versions: 75
Compression:
Stored size: 331 Bytes
Contents
# frozen_string_literal: true class LHS::Pagination::Page < LHS::Pagination::Base DEFAULT_OFFSET = 1 def current_page offset end def next_offset(step = 1) self.class.next_offset(current_page, limit, step) end def self.next_offset(current_page, _limit, step = 1) current_page.to_i + step.to_i end end
Version data entries
75 entries across 75 versions & 1 rubygems