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