lib/tori/file.rb in tori-0.6.5 vs lib/tori/file.rb in tori-0.6.6

- old
+ new

@@ -36,14 +36,10 @@ def from? !@from.nil? end - def read - backend.read name - end - def write(opts = nil) opts ||= {} backend.write name, @from, opts.merge(from_path: @from_path) end @@ -71,10 +67,10 @@ def method_missing(sym, *args, &block) if respond_to_missing?(sym, false) backend.__send__ sym, name, *args, &block else - fail NameError, "undefined method `#{sym}' for #{Tori.config.backend.inspect}" + raise NameError, "undefined method `#{sym}' for #{backend}" end end end end