打印Ruby所有类在阵列

ObjectSpace.each_object(Class).to_a
ObjectSpace.each_object(Class).to_a
ObjectSpace.each_object(Class).to_a

编程技巧