lib/docrb/lib/docrb/doc_compiler/base_container/computations.rb
# Recursively computes all dependants of the receiver.
# This method expands all references into concrete representations.
Recursively computes all dependants of the receiver.
This method expands all references into concrete representations.
Recursively computes all dependants of the receiver . This method expands all references into concrete representations .
def compute_dependants
          return if @compute_dependants
          @compute_dependants = true
          classes.each(&:compute_dependants)
          modules.each(&:compute_dependants)
          extends.each do |ref|
            resolve_ref(ref)&.compute_dependants
          end
          includes.each do |ref|
            resolve_ref(ref)&.compute_dependants
          end
          return unless (parent_name = @inherits)
          @parent_class = resolve(parent_name)
          return unless @parent_class
          @parent_class.compute_dependants
        end
def compute_dependants return if @compute_dependants @compute_dependants = true classes . each ( & :compute_dependants ) modules . each ( & :compute_dependants ) extends . each do | ref | resolve_ref ( ref ) &. compute_dependants end includes . each do | ref | resolve_ref ( ref ) &. compute_dependants end return unless ( parent_name = @inherits ) @parent_class = resolve ( parent_name ) return unless @parent_class @parent_class . compute_dependants end
Recursively computes all dependants of the receiver.
Recursively computes all dependants of the receiver .