lib/strada.rb in strada-0.0.2 vs lib/strada.rb in strada-0.0.3

- old
+ new

@@ -76,11 +76,11 @@ # @option opts [Symbol] :source source to use for settings to save, by default :default # @option opts [Symbol] :destination destination to use for settings to save, by default :user # @option opts [boolean] :load load config once saved, by default false # @return [boolean] true if config didn't exist and was created, false if config already exists def create(opts = {}) - src = opts.delete :source || :default - dst = opts.delete :destination || :user + src = opts.delete(:source) || :default + dst = opts.delete(:destination) || :user no_config = false no_config = true if @system.empty? && @user.empty? if no_config src = instance_variable_get "@" + src.to_s