Print out only errors : ObjectSpace « Reflection « Ruby






Print out only errors


ObjectSpace.each_object(Class) { |x| puts x if x.name =~ /Error$/ }

 

Related examples in the same category

1.Print out all exceptions
2.ObjectSpace.each_object