Sha256: 29b3f3e4c2d84f835182ba29ec20580012115cd4e9aaafb4cdb920ff18c79b12
Contents?: true
Size: 379 Bytes
Versions: 3
Compression:
Stored size: 379 Bytes
Contents
module ChartMogul module ConfigAttributes def config_accessor(attribute) define_method(attribute) do attr = config.send(attribute) raise ConfigurationError, "Configuration for #{attribute} not set" if attr.nil? attr end define_method("#{attribute}=") do |val| config.send("#{attribute}=", val) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
chartmogul-ruby-1.1.9 | lib/chartmogul/config_attributes.rb |
chartmogul-ruby-1.1.8 | lib/chartmogul/config_attributes.rb |
chartmogul-ruby-1.1.7 | lib/chartmogul/config_attributes.rb |