Sha256: 5b34f03d1aba39d542cd2526e9d2d93259f7823cdc4bafc51823608ac1c57809

Contents?: true

Size: 359 Bytes

Versions: 40

Compression:

Stored size: 359 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

40 entries across 40 versions & 1 rubygems

Version Path
commontator-5.1.0 lib/commontator/commontable_config.rb
commontator-5.0.0 lib/commontator/commontable_config.rb
commontator-4.11.1 lib/commontator/commontable_config.rb
commontator-4.11.0 lib/commontator/commontable_config.rb
commontator-4.10.5 lib/commontator/commontable_config.rb
commontator-4.10.4 lib/commontator/commontable_config.rb
commontator-4.10.3 lib/commontator/commontable_config.rb
commontator-4.10.2 lib/commontator/commontable_config.rb
commontator-4.10.1 lib/commontator/commontable_config.rb
commontator-4.10.0 lib/commontator/commontable_config.rb
commontator-4.9.0 lib/commontator/commontable_config.rb
commontator-4.5.4 lib/commontator/commontable_config.rb
commontator-4.5.3 lib/commontator/commontable_config.rb
commontator-4.5.2 lib/commontator/commontable_config.rb
commontator-4.5.1 lib/commontator/commontable_config.rb
commontator-4.5.0 lib/commontator/commontable_config.rb
commontator-4.4.1 lib/commontator/commontable_config.rb
commontator-4.3.0 lib/commontator/commontable_config.rb
commontator-4.2.2 lib/commontator/commontable_config.rb
commontator-4.2.1 lib/commontator/commontable_config.rb