lib/pitchfork/flock.rb in pitchfork-0.6.0 vs lib/pitchfork/flock.rb in pitchfork-0.7.0
- old
+ new
@@ -17,9 +17,13 @@
@file.close
@file = File.open(@file.path, "w")
nil
end
+ def to_io
+ @file
+ end
+
def unlink
File.unlink(@file.path)
rescue Errno::ENOENT
false
end