Sha256: b2fe93fc1382fc9244e8be38f2c7e23ad80398c4652a41a705ac9cc1b7abbd32
Contents?: true
Size: 405 Bytes
Versions: 8
Compression:
Stored size: 405 Bytes
Contents
module PaginatedTable def self.configure(&block) @configuration = Configuration.new(&block) end def self.configuration @configuration end class Configuration attr_accessor :rows_per_page def initialize yield self end end def self.set_default_configuration configure do |config| config.rows_per_page = 10 end end set_default_configuration end
Version data entries
8 entries across 8 versions & 1 rubygems