lib/relish/options_file.rb in relish-0.0.7 vs lib/relish/options_file.rb in relish-0.0.8
- old
+ new
@@ -11,13 +11,13 @@
end
# Store the given options into the file. Existing options with the same keys
# will be overwritten.
def store(options)
- new_options = self.options.merge(options)
+ @options = self.options.merge(options)
FileUtils.touch(@path)
File.open(@path, 'w') do |file|
- YAML.dump(new_options, file)
+ YAML.dump(@options, file)
end
end
def [](key)
options[key]
\ No newline at end of file