Sha256: cf5ce9d16cbbe18ad7dcf1a9d2937d66e3ad01c3f12c147c303d957674241920

Contents?: true

Size: 156 Bytes

Versions: 17

Compression:

Stored size: 156 Bytes

Contents

class Object
  # Returns all descendants of a class
  #
  def self.descendants
    ObjectSpace.each_object(Class).select { |klass| klass < self }
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
xcake-0.8.13 lib/xcake/core_ext/object.rb
xcake-0.8.12 lib/xcake/core_ext/object.rb
xcake-0.8.10 lib/xcake/core_ext/object.rb
xcake-0.8.9 lib/xcake/core_ext/object.rb
xcake-0.8.8 lib/xcake/core_ext/object.rb
xcake-0.8.7 lib/xcake/core_ext/object.rb
xcake-0.8.6 lib/xcake/core_ext/object.rb
xcake-0.8.3 lib/xcake/core_ext/object.rb
xcake-0.8.1 lib/xcake/core_ext/object.rb
xcake-0.7.1 lib/xcake/core_ext/object.rb
xcake-0.7.0 lib/xcake/core_ext/object.rb
xcake-0.6.25 lib/xcake/core_ext/object.rb
xcake-0.6.24 lib/xcake/core_ext/object.rb
xcake-0.6.23 lib/xcake/core_ext/object.rb
xcake-0.6.22 lib/xcake/core_ext/object.rb
xcake-0.6.21 lib/xcake/core_ext/object.rb
xcake-0.6.20 lib/xcake/core_ext/object.rb