Sha256: 1f7d25a1e5bf83675e8e51318cbdf886b6463379288555cb707669c351ca34c6

Contents?: true

Size: 361 Bytes

Versions: 4

Compression:

Stored size: 361 Bytes

Contents

module Commontator
  class CommontableConfig
    Commontator::COMMONTABLE_ATTRIBUTES.each do |attribute|
      cattr_accessor attribute
    end
  
    def initialize(options = {})
      Commontator::COMMONTABLE_CONFIG.keys.each do |attribute|
        self.send attribute.to_s + '=', options[attribute] || Commontator.send(attribute)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
commontator-0.4.1 lib/commontator/commontable_config.rb~
commontator-0.3.10 lib/commontator/commontable_config.rb~
commontator-0.2.4 lib/commontator/commontable_config.rb~
commontator-0.2.0 lib/commontator/commontable_config.rb~