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

Version Path
facets-0.6.3 lib/facet-dev/object/query.rb
facets-1.4.1 forge/core/kernel/query.rb
facets-1.4.2 forge/core/kernel/query.rb
facets-1.4.3 forge/core/kernel/query.rb
facets-1.4.5 snip/core/kernel/query.rb
facets-1.4.4 forge/core/kernel/query.rb
facets-1.8.0 work/core/kernel/query.rb
facets-1.8.20 work/core/kernel/query.rb
facets-1.8.49 work/core/kernel/query.rb
facets-1.8.8 work/core/kernel/query.rb