Class: Class

Inherits:
Object show all
Defined in:
lib/users/common.rb

Overview

Instance Method Summary collapse

Instance Method Details

#subclassesObject


21
22
23
# File 'lib/users/common.rb', line 21

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