Commit 81df9666 authored by Fabio Pelosin's avatar Fabio Pelosin

[Config] Robustness agaisnt empty configuration file.

parent e9862578
...@@ -176,6 +176,7 @@ module Pod ...@@ -176,6 +176,7 @@ module Pod
# @return [void] # @return [void]
# #
def configure_with(values_by_key) def configure_with(values_by_key)
return unless values_by_key
values_by_key.each do |key, value| values_by_key.each do |key, value|
self.instance_variable_set("@#{key}", value) self.instance_variable_set("@#{key}", value)
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment