Sha256: c75cc20eb40bf33d1d2db14a88cf2a6658a3c8f55035ae543ec9ed77d8a079f6

Contents?: true

Size: 360 Bytes

Versions: 6

Compression:

Stored size: 360 Bytes

Contents

module Commontator
  class CommontableConfig
    Commontator::COMMONTABLE_ATTRIBUTES.each do |attribute|
      attr_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

6 entries across 6 versions & 1 rubygems

Version Path
commontator-4.8.0 lib/commontator/commontable_config.rb
commontator-4.7.2 lib/commontator/commontable_config.rb
commontator-4.7.1 lib/commontator/commontable_config.rb
commontator-4.7.0 lib/commontator/commontable_config.rb
commontator-4.6.1 lib/commontator/commontable_config.rb
commontator-4.6.0 lib/commontator/commontable_config.rb