lib/docrb/lib/docrb/doc_compiler/base_container.rb
def to_h
        {
          type: type,
          name: name,
          doc: DocBlocks.prepare(doc, parent: self),
          defined_by: defined_by.map(&:to_h),
          defs: merged_instance_methods.transform_values { |v| unpack(v) },
          sdefs: merged_class_methods.transform_values { |v| unpack(v) },
          classes: classes.map(&:to_h),
          modules: modules.map(&:to_h),
          includes: includes.map(&:to_h),
          extends: extends.map(&:to_h)
        }
      end
# Returns a Hash representation of the current container along with its
# children.
Returns a Hash representation of the current container along with its
children.
Returns a Hash representation of the current container along with its children .
def to_h
        {
          type: type,
          name: name,
          doc: DocBlocks.prepare(doc, parent: self),
          defined_by: defined_by.map(&:to_h),
          defs: merged_instance_methods.transform_values { |v| unpack(v) },
          sdefs: merged_class_methods.transform_values { |v| unpack(v) },
          classes: classes.map(&:to_h),
          modules: modules.map(&:to_h),
          includes: includes.map(&:to_h),
          extends: extends.map(&:to_h)
        }
      end
def to_h { type : type , name : name , doc : DocBlocks . prepare ( doc , parent : self ) , defined_by : defined_by . map ( & :to_h ) , defs : merged_instance_methods . transform_values { | v | unpack ( v ) } , sdefs : merged_class_methods . transform_values { | v | unpack ( v ) } , classes : classes . map ( & :to_h ) , modules : modules . map ( & :to_h ) , includes : includes . map ( & :to_h ) , extends : extends . map ( & :to_h ) } end
Returns a Hash representation of the current container along with its
children.
Returns a Hash representation of the current container along with its children .