Sha256: 77587857c086b2252431853fca77adca2508bef0efc008268ffb240ab7f8f94c

Contents?: true

Size: 145 Bytes

Versions: 55

Compression:

Stored size: 145 Bytes

Contents

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

Version data entries

55 entries across 55 versions & 3 rubygems

Version Path
acmcommits-1.0.17 lib/core_ext/class.rb
acmcommits-1.0.16 lib/core_ext/class.rb
acmcommits-1.0.15 lib/core_ext/class.rb
acmcommits-1.0.14 lib/core_ext/class.rb
acmcommits-1.0.13 lib/core_ext/class.rb
acmcommits-1.0.12 lib/core_ext/class.rb
acmcommits-1.0.11 lib/core_ext/class.rb
acmcommits-1.0.10 lib/core_ext/class.rb
acmcommits-1.0.9 lib/core_ext/class.rb
acmcommits-1.0.8 lib/core_ext/class.rb
acmcommits-1.0.7 lib/core_ext/class.rb
acmcommits-1.0.6 lib/core_ext/class.rb
acmcommits-1.0.4 lib/core_ext/class.rb
acmcommits-1.0.3 lib/core_ext/class.rb
acmcommits-1.0.2 lib/core_ext/class.rb
acmcommits-1.0.1 lib/core_ext/class.rb
acmcommits-1.0.0 lib/core_ext/class.rb
acmcommits-0.0.1 lib/core_ext/class.rb
acmcommits-0.4.3 lib/core_ext/class.rb
lolcommits-0.4.3 lib/core_ext/class.rb