Sha256: 2bf27752a7d671b04877aa8ea78a6862674a5b0cb7e04824acac830ed497813e

Contents?: true

Size: 359 Bytes

Versions: 12

Compression:

Stored size: 359 Bytes

Contents

module SmartTable
  class Config
    DEFAULT_CONFIGS = {

    }

    DEFAULT_CONFIGS.each do |config_name, default_value|
      # defines accessors for each configuration on Config class
      self.cattr_accessor config_name, instance_accessor: false
      # initializes default value
      self.send(config_name.to_s + '=', default_value)
    end

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
smart_table-0.0.12 ./lib/smart_table/config.rb
smart_table-0.0.11 ./lib/smart_table/config.rb
smart_table-0.0.10 ./lib/smart_table/config.rb
smart_table-0.0.9 ./lib/smart_table/config.rb
smart_table-0.0.8 ./lib/smart_table/config.rb
smart_table-0.0.7 ./lib/smart_table/config.rb
smart_table-0.0.6 ./lib/smart_table/config.rb
smart_table-0.0.5 ./lib/smart_table/config.rb
smart_table-0.0.4 ./lib/smart_table/config.rb
smart_table-0.0.3 ./lib/smart_table/config.rb
smart_table-0.0.2 ./lib/smart_table/config.rb
smart_table-0.0.1 ./lib/smart_table/config.rb