Ruby's ObjectSpace: A Challenge for the Managed Platforms
The Ruby language contains the built-in module ObjectSpace, which provides programmatic access to the entire world of living objects. For instance, in Ruby you can write:
ObjectSpace::each_object(Class) do |c|
p c if c < Test::Unit::TestCase
end
which will iterate over every instance of Class in the …
more ...