Module: ObjectSpace
- Defined in:
- lib/extlib/object_space.rb
Class Method Summary collapse
-
.classes ⇒ Array<Class>
All the classes in the object space.
Class Method Details
.classes ⇒ Array<Class>
Returns All the classes in the object space.
6 7 8 9 10 |
# File 'lib/extlib/object_space.rb', line 6 def classes klasses = [] ObjectSpace.each_object(Class) {|o| klasses << o} klasses end |