Module: ObjectSpace

Defined in:
lib/core/facets/objectspace/classes.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.



4
5
6
7
8
# File 'lib/core/facets/objectspace/classes.rb', line 4

def self.classes
  klasses = []
  each_object(Class){|o| klasses << o}
  klasses
end