Sha256: c9fba6190b1d6eb0c05a0c3fd04d3f809d34109a3b4021a8f89e2709d0981a23
Contents?: true
Size: 202 Bytes
Versions: 30
Compression:
Stored size: 202 Bytes
Contents
module Murlsh module_function # Open a file with an exclusive lock. def openlock(*args) open(*args) do |f| f.flock(File::LOCK_EX) ; yield f ; f.flock(File::LOCK_UN) end end end
Version data entries
30 entries across 30 versions & 1 rubygems