Module: Descendents::ClassMethods

Defined in:
lib/mixins/descendents.rb

Instance Method Summary collapse

Instance Method Details

#descendentsObject



7
8
9
# File 'lib/mixins/descendents.rb', line 7

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