Sha256: 7a3238b30c97e944a6a28eb3eead2a6ba2b5d925d49d45a8e670faccd8f334c3
Contents?: true
Size: 257 Bytes
Versions: 7
Compression:
Stored size: 257 Bytes
Contents
module Daybreak # File locking mixin module Locking # Lock a file with the type <tt>lock</tt> def lock(fd, lock=File::LOCK_SH) fd.flock lock begin yield ensure fd.flock File::LOCK_UN end end end end
Version data entries
7 entries across 7 versions & 1 rubygems