lib/docrb/lib/docrb/doc_compiler/base_container/computations.rb
# Returns a hash containing all attributes for the container, along with
# inherited ones.
Returns a hash containing all attributes for the container, along with
inherited ones.
Returns a hash containing all attributes for the container along with inherited ones .
def merged_attributes
          return @merged_attributes if @merged_attributes
          compute_dependants
          attrs = {}
          @parent_class&.merged_attributes&.each do |k, v|
            attrs[k] = { source: :inheritance, definition: v }
          end
          attributes.each do |m|
            attrs[m.name] = { source: :source, definition: m, overriding: attrs[m.name] }
          end
          attrs
        end
def merged_attributes return @merged_attributes if @merged_attributes compute_dependants attrs = { } @parent_class &. merged_attributes &. each do | k , v | attrs [ k ] = { source : :inheritance , definition : v } end attributes . each do | m | attrs [ m . name ] = { source : :source , definition : m , overriding : attrs [ m . name ] } end attrs end
Returns a hash containing all attributes for the container, along with
inherited ones.
Returns a hash containing all attributes for the container along with inherited ones .