lib/deputy.rb in deputy-0.1.21 vs lib/deputy.rb in deputy-0.1.22
- old
+ new
@@ -40,9 +40,13 @@
def remember(data)
all = complete_memory.merge(data)
File.open(memory_file, 'w'){|f| f.write all.to_yaml }
end
+ def needs(lib)
+ require lib
+ end
+
private
def complete_memory
return {} unless File.exist?(memory_file)
YAML.load(File.read(memory_file)) || {}
\ No newline at end of file