Sha256: 66f485497a17c3eab61a25fb41d4703f1506c5969fcef578e3d6dc3fe45285ee

Contents?: true

Size: 360 Bytes

Versions: 12

Compression:

Stored size: 360 Bytes

Contents

require_relative 'config'

class Commontator::CommontatorConfig
  Commontator::Config::COMMONTATOR_ATTRIBUTES.each do |attribute|
    attr_accessor attribute
  end

  def initialize(options = {})
    Commontator::Config::COMMONTATOR_ATTRIBUTES.each do |attribute|
      send "#{attribute}=", options[attribute] || Commontator.send(attribute)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
commontator-7.0.1 lib/commontator/commontator_config.rb
commontator-7.0.0 lib/commontator/commontator_config.rb
commontator-6.3.2 lib/commontator/commontator_config.rb
commontator-6.3.1 lib/commontator/commontator_config.rb
commontator-6.3.0 lib/commontator/commontator_config.rb
commontator-6.2.1 lib/commontator/commontator_config.rb
commontator-6.2.0 lib/commontator/commontator_config.rb
commontator-6.1.1 lib/commontator/commontator_config.rb
commontator-6.1.0 lib/commontator/commontator_config.rb
commontator-6.0.1 lib/commontator/commontator_config.rb
commontator-6.0.0 lib/commontator/commontator_config.rb
commontator-6.0.0.pre.2 lib/commontator/commontator_config.rb