lib/docrb/lib/docrb/doc_compiler/base_container/computations.rb
def merged_class_methods
          return @merged_class_methods if @merged_class_methods

          compute_dependants

          methods = {}
          @parent_class&.merged_class_methods&.each do |k, v|
            methods[k] = { source: :inheritance, definition: v }
          end

          includes.each do |ref|
            next unless (container = resolve_container(ref))

            container.merged_class_methods.each do |k, v|
              methods[k] = { source: :extension, definition: v, overriding: methods[k] }
            end
          end

          sdefs.each do |m|
            methods[m.name] = { source: :source, definition: m, overriding: methods[m.name] }
          end

          methods
        end
# Returns a hash containing all class methods for the container, along
# with inherited and extended ones.
Returns a hash containing all class methods for the container, along
with inherited and extended ones.
Returns a hash containing all class methods for the container along with inherited and extended ones .
def merged_class_methods
          return @merged_class_methods if @merged_class_methods
          compute_dependants
          methods = {}
          @parent_class&.merged_class_methods&.each do |k, v|
            methods[k] = { source: :inheritance, definition: v }
          end
          includes.each do |ref|
            next unless (container = resolve_container(ref))
            container.merged_class_methods.each do |k, v|
              methods[k] = { source: :extension, definition: v, overriding: methods[k] }
            end
          end
          sdefs.each do |m|
            methods[m.name] = { source: :source, definition: m, overriding: methods[m.name] }
          end
          methods
        end
def merged_class_methods return @merged_class_methods if @merged_class_methods compute_dependants methods = { } @parent_class &. merged_class_methods &. each do | k , v | methods [ k ] = { source : :inheritance , definition : v } end includes . each do | ref | next unless ( container = resolve_container ( ref ) ) container . merged_class_methods . each do | k , v | methods [ k ] = { source : :extension , definition : v , overriding : methods [ k ] } end end sdefs . each do | m | methods [ m . name ] = { source : :source , definition : m , overriding : methods [ m . name ] } end methods end
Returns a hash containing all class methods for the container, along
with inherited and extended ones.
Returns a hash containing all class methods for the container along with inherited and extended ones .