APIdock / Ruby on Rails
/
Browse About
method

descendants

v3.1.0 - Show latest stable - Class: Class
descendants()
public

No documentation available.

# File activesupport/lib/active_support/core_ext/class/subclasses.rb, line 8
    def descendants
      descendants = []
      ObjectSpace.each_object(class << self; self; end) do |k|
        descendants.unshift k unless k == self
      end
      descendants
    end

Related methods

  • Instance methods
  • cattr_accessor
  • cattr_reader
  • cattr_writer
  • class_attribute
  • class_inheritable_accessor
  • class_inheritable_array
  • class_inheritable_array_writer
  • class_inheritable_hash
  • class_inheritable_hash_writer
  • class_inheritable_reader
  • class_inheritable_writer
  • descendants
  • duplicable?
  • inheritable_attributes
  • read_inheritable_attribute
  • reset_inheritable_attributes
  • subclasses
  • superclass_delegating_accessor
  • write_inheritable_array
  • write_inheritable_attribute
  • write_inheritable_hash
  • Private methods
  • private_stash_object_in_method
  • private_superclass_delegating_accessor
  • privateinherited
  • privateinherited_with_inheritable_attributes
  • privateinherited_without_inheritable_attributes
  • privatesingleton_class?
APIdock API Documentation Browser

Implement the SPACE framework the right way with Swarmia.

© 2026 APIdock