Sha256: 796e8d9c0b317e8ed7ddc39c71994c6d02a7cc13edb322d002c9ce53f3385f3c
Contents?: true
Size: 273 Bytes
Versions: 98
Compression:
Stored size: 273 Bytes
Contents
class Dir @@mutex = Mutex.new def self.glob_dir(pattern, dir) result = nil @@mutex.synchronize do Dir.chdir(dir) do result = Dir.glob(pattern) end end return result end def self.mutex @@mutex end end
Version data entries
98 entries across 98 versions & 1 rubygems