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-4.2.0 lib/commontator/commontable_config.rb
commontator-4.1.2 lib/commontator/commontable_config.rb
commontator-4.1.1 lib/commontator/commontable_config.rb
commontator-4.0.2 lib/commontator/commontable_config.rb
commontator-2.0.2 lib/commontator/commontable_config.rb
commontator-4.0.1 lib/commontator/commontable_config.rb
commontator-4.0.0 lib/commontator/commontable_config.rb
commontator-2.0.1 lib/commontator/commontable_config.rb
commontator-2.0.0 lib/commontator/commontable_config.rb
commontator-1.1.3 lib/commontator/commontable_config.rb
commontator-1.1.2 lib/commontator/commontable_config.rb
commontator-1.1.1 lib/commontator/commontable_config.rb
commontator-1.1.0 lib/commontator/commontable_config.rb
commontator-1.0.6 lib/commontator/commontable_config.rb
commontator-1.0.5 lib/commontator/commontable_config.rb
commontator-1.0.4 lib/commontator/commontable_config.rb
commontator-1.0.3 lib/commontator/commontable_config.rb
commontator-1.0.2 lib/commontator/commontable_config.rb
commontator-1.0.1 lib/commontator/commontable_config.rb
commontator-1.0.0 lib/commontator/commontable_config.rb