Sha256: 7041b27656d52b61dd8a1b1d9dfcd9f62203e919bf5579e3ff8c37174d94de66
Contents?: true
Size: 275 Bytes
Versions: 22
Compression:
Stored size: 275 Bytes
Contents
module TableSortable class Result < Array attr_reader :total_count, :unpaginated def initialize(the_array, page, page_size) @unpaginated = the_array @total_count = the_array.length super(the_array[(page)*page_size, page_size]) end end end
Version data entries
22 entries across 22 versions & 1 rubygems