Sha256: f43138a60513ae692a90430ac1e92046a69cf12461a07cee064709c65c5f987d
Contents?: true
Size: 285 Bytes
Versions: 10
Compression:
Stored size: 285 Bytes
Contents
class Object def self.query( classes=nil, &blk ) objs = [] if mod ObjectSpace.each_object(mod) do |o| objs << o if blk.call(o) end else ObjectSpace.each_object do |o| objs << o if blk.call(o) end end return objs end end
Version data entries
10 entries across 10 versions & 1 rubygems