Sha256: 6dd2186c54c7a6f707944d80a8aac2e072a78096962e4afc00ad1f1174ae37d3

Contents?: true

Size: 360 Bytes

Versions: 16

Compression:

Stored size: 360 Bytes

Contents

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
commontator-1.1.1 lib/commontator/commontable_config.rb~
commontator-1.1.0 lib/commontator/commontable_config.rb~
commontator-1.0.6 lib/commontator/commontable_config.rb~
commontator-1.0.5 lib/commontator/commontable_config.rb~
commontator-1.0.4 lib/commontator/commontable_config.rb~
commontator-1.0.3 lib/commontator/commontable_config.rb~
commontator-1.0.2 lib/commontator/commontable_config.rb~
commontator-1.0.1 lib/commontator/commontable_config.rb~
commontator-1.0.0 lib/commontator/commontable_config.rb~
commontator-0.5.14 lib/commontator/commontable_config.rb
commontator-0.5.13 lib/commontator/commontable_config.rb
commontator-0.5.12 lib/commontator/commontable_config.rb
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