Class: Class

Inherits:
Object show all
Defined in:
lib/fission.old/core_ext/class.rb

Instance Method Summary collapse

Instance Method Details

#descendantsObject


2
3
4
# File 'lib/fission.old/core_ext/class.rb', line 2

def descendants
  ObjectSpace.each_object(Class).select { |klass| klass < self }
end