lib/deputy.rb in deputy-0.1.38 vs lib/deputy.rb in deputy-0.1.39
- old
+ new
@@ -37,10 +37,11 @@
def memory(key)
complete_memory[key]
end
- def remember(data)
+ def remember(*args)
+ data = (args.size == 1 ? args[0] : {args[0] => args[1]})
all = complete_memory.merge(data)
File.open(memory_file, 'w'){|f| f.write all.to_yaml }
end
def self.needs(lib)
\ No newline at end of file