Flowdock
method

descendants

Importance_1
Ruby on Rails latest stable (v5.2.3) - 0 notes - Class: Class
descendants() public

Returns an array with all classes that are < than its receiver.

class C; end
C.descendants # => []

class B < C; end
C.descendants # => [B]

class A < B; end
C.descendants # => [B, A]

class D < C; end
C.descendants # => [B, A, D]
Show source
Register or log in to add new notes.