Sha256: 67e84808ef27f28918af49ad1c63a82879edece564cff28ae1822f82e612658a

Contents?: true

Size: 360 Bytes

Versions: 16

Compression:

Stored size: 360 Bytes

Contents

module Commontator
  class CommontatorConfig
    Commontator::COMMONTATOR_ATTRIBUTES.each do |attribute|
      cattr_accessor attribute
    end
  
    def initialize(options = {})
      Commontator::COMMONTATOR_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/commontator_config.rb~
commontator-1.1.0 lib/commontator/commontator_config.rb~
commontator-1.0.6 lib/commontator/commontator_config.rb~
commontator-1.0.5 lib/commontator/commontator_config.rb~
commontator-1.0.4 lib/commontator/commontator_config.rb~
commontator-1.0.3 lib/commontator/commontator_config.rb~
commontator-1.0.2 lib/commontator/commontator_config.rb~
commontator-1.0.1 lib/commontator/commontator_config.rb~
commontator-1.0.0 lib/commontator/commontator_config.rb~
commontator-0.5.14 lib/commontator/commontator_config.rb
commontator-0.5.13 lib/commontator/commontator_config.rb
commontator-0.5.12 lib/commontator/commontator_config.rb
commontator-0.4.1 lib/commontator/commontator_config.rb
commontator-0.3.10 lib/commontator/commontator_config.rb
commontator-0.2.4 lib/commontator/commontator_config.rb
commontator-0.2.0 lib/commontator/commontator_config.rb