Sha256: 7e06bc39d327cbf3630d02a81dbcd7b7e9c6366532b032116ac21d8e9f7c2c7f

Contents?: true

Size: 370 Bytes

Versions: 1

Compression:

Stored size: 370 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|
      self.send attribute.to_s + '=', options[attribute] || Commontator.send(attribute)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
commontator-6.0.0.pre.1 lib/commontator/commontator_config.rb