Sha256: f4a5ee7d6f83263c24e187c733536f7d044cd763803f519b0d12bc8df0bb4dcf

Contents?: true

Size: 370 Bytes

Versions: 1

Compression:

Stored size: 370 Bytes

Contents

require_relative 'config'

class Commontator::CommontableConfig
  Commontator::Config::COMMONTABLE_ATTRIBUTES.each do |attribute|
    attr_accessor attribute
  end

  def initialize(options = {})
    Commontator::Config::COMMONTABLE_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/commontable_config.rb