lib/propono/configuration.rb in propono-1.0.0.rc1 vs lib/propono/configuration.rb in propono-1.0.0.rc2

- old
+ new

@@ -23,17 +23,17 @@ SETTINGS.each do |setting| define_method setting do get_or_raise(setting) end end - - attr_reader :use_iam_profile - + + attr_reader :use_iam_profile, :queue_suffix + private def get_or_raise(setting) - instance_variable_get("@#{setting.to_s}") || - raise(ProponoConfigurationError.new("Configuration for #{setting} is not set")) + val = instance_variable_get("@#{setting.to_s}") + val.nil?? raise(ProponoConfigurationError.new("Configuration for #{setting} is not set")) : val end end end