lib/defog/handle.rb in defog-0.1.1 vs lib/defog/handle.rb in defog-0.2.0
- old
+ new
@@ -91,11 +91,11 @@
# Pass
# :persist => true
# to suppress deleting the file and so maintain the file after closing. See File#close for more
# details.
def open(mode, opts={}, &block)
- opts = opts.keyword_args(:persist)
- File.get(opts.merge(:handle => self, :mode => mode), &block)
+ opts = opts.keyword_args(:persist => @proxy.persist)
+ File.open(opts.merge(:handle => self, :mode => mode), &block)
end
end
end