Sha256: 20d7003f4ca51330891acdd14d275284edc2bdc5ea016b061561479d725ff8d3
Contents?: true
Size: 192 Bytes
Versions: 11
Compression:
Stored size: 192 Bytes
Contents
class Array def paginate(options={:page => 1, :per_page => 50}) page = options[:page] per_page = options[:per_page] self[((page - 1) * per_page)...(page * per_page)] end end
Version data entries
11 entries across 11 versions & 1 rubygems