Sha256: 624fadf282b3fa01ef1395264f9603fb0b9f49057324c0b87b01251d5163ace3
Contents?: true
Size: 230 Bytes
Versions: 127
Compression:
Stored size: 230 Bytes
Contents
class Class def subclasses result = [] ObjectSpace.each_object(Class) do |k| next unless k < self next if k.respond_to?(:singleton_class?) && k.singleton_class? result << k end result end end
Version data entries
127 entries across 127 versions & 1 rubygems