Class: Class

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

Overview

Instance Method Summary collapse

Instance Method Details

#subclassesObject



6
7
8
9
10
# File 'lib/json_tail/ext/class.rb', line 6

def subclasses
  result = []
  ObjectSpace.each_object(Class) { |klass| result << klass if klass < self }
  result
end