typed: strict frozen_string_literal: true
21 22 23 24 25 26 27
# File 'lib/tapioca/core_ext/class.rb', line 21 def descendants result = ObjectSpace.each_object(singleton_class).reject do |k| T.cast(k, Module).singleton_class? || k == self end T.cast(result, T::Array[Class]) end