Module: ObjectSpace

Defined in:
lib/extlib/object_space.rb

Class Method Summary collapse

Class Method Details

.classesArray<Class>

Returns All the classes in the object space.

Returns:

  • (Array<Class>)

    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