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
lolcommits-mpv-0.5.3 lib/core_ext/class.rb
lolcommits-mpv-0.5.2 lib/core_ext/class.rb
lolcommits-0.5.2 lib/core_ext/class.rb
lolcommits-0.5.2.pre1 lib/core_ext/class.rb
lolcommits-0.5.1 lib/core_ext/class.rb
lolcommits-0.5.1.pre2 lib/core_ext/class.rb
lolcommits-0.5.0 lib/core_ext/class.rb
lolcommits-0.5.0.pre3 lib/core_ext/class.rb
lolcommits-0.5.0.pre2 lib/core_ext/class.rb
lolcommits-0.5.0.pre1 lib/core_ext/class.rb
lolcommits-0.4.6 lib/core_ext/class.rb
lolcommits-0.4.6.pre1 lib/core_ext/class.rb
lolcommits-0.4.5 lib/core_ext/class.rb
lolcommits-0.4.4 lib/core_ext/class.rb
acmcommits-1.1.4 lib/core_ext/class.rb
acmcommits-1.1.3 lib/core_ext/class.rb
acmcommits-1.1.2 lib/core_ext/class.rb
acmcommits-1.1.1 lib/core_ext/class.rb
acmcommits-1.1.0 lib/core_ext/class.rb
lolcommits-0.4.4pre1 lib/core_ext/class.rb