lib/tori/backend/filesystem.rb in tori-0.5.0 vs lib/tori/backend/filesystem.rb in tori-0.6.0
- old
+ new
@@ -37,9 +37,13 @@
def read(filename)
::File.read(path(filename), mode: 'rb')
end
+ def open(filename, *rest, &block)
+ ::File.open(path(filename), *rest, &block)
+ end
+
def path(filename)
@root.join filename.to_s
end
end
end