ObjectSpace.each_object : ObjectSpace « Reflection « Ruby






ObjectSpace.each_object


ObjectSpace.each_object do |obj|
  printf "%20s: %s\n", obj.class, obj.inspect
end

 








Related examples in the same category

1.Print out all exceptions
2.Print out only errors