Module: ObjectSpace

Defined in:
lib/thor/lib/thor/util.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.



8
9
10
11
12
# File 'lib/thor/lib/thor/util.rb', line 8

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