Class: Class

Inherits:
Object
  • Object
show all
Defined in:
lib/specinfra/ext/class.rb

Instance Method Summary collapse

Instance Method Details

#subclassesObject


2
3
4
5
6
7
8
# File 'lib/specinfra/ext/class.rb', line 2

def subclasses
  result = []
  ObjectSpace.each_object(Class) do |k|
    result << k if k < self
  end
  result
end