ObjectSpace.each_object(Class).to_aObjectSpace.each_object(Class).to_aObjectSpace.each_object(Class).to_a
来源: http://www.phpxs.com/code/1006860/