lib/http/cookie_jar/abstract_store.rb in http-cookie-1.0.0.pre10 vs lib/http/cookie_jar/abstract_store.rb in http-cookie-1.0.0.pre11
- old
+ new
@@ -39,10 +39,10 @@
options ||= {}
@logger = options[:logger]
# Initializes each instance variable of the same name as option
# keyword.
default_options.each_pair { |key, default|
- instance_variable_set("@#{key}", options.key?(key) ? options[key] : default)
+ instance_variable_set("@#{key}", options.fetch(key, default))
}
end
def initialize_copy(other)
raise