lib/chartmogul/config_attributes.rb in chartmogul-ruby-1.1.3 vs lib/chartmogul/config_attributes.rb in chartmogul-ruby-1.1.4
- old
+ new
@@ -1,15 +1,15 @@
-module ChartMogul
- module ConfigAttributes
- def config_accessor(attribute)
- define_method(attribute) do
- attr = config.send(attribute)
- raise ConfigurationError.new("Configuration for #{attribute} not set") if attr.nil?
- attr
- end
-
- define_method("#{attribute}=") do |val|
- config.send("#{attribute}=", val)
- end
- end
- end
-end
+module ChartMogul
+ module ConfigAttributes
+ def config_accessor(attribute)
+ define_method(attribute) do
+ attr = config.send(attribute)
+ raise ConfigurationError.new("Configuration for #{attribute} not set") if attr.nil?
+ attr
+ end
+
+ define_method("#{attribute}=") do |val|
+ config.send("#{attribute}=", val)
+ end
+ end
+ end
+end