lib/docrb/lib/docrb/comment_parser.rb
def parse(data)
      load(data)
      coalesce_field_list
      detect_code_example

      infer_visibility_from_doc if %i[def defs].include? @type

      data = to_h
      data[:contents] = detect_references(data[:contents])
      data
    end
# Intenral: Loads the provided data into the parser and executes all steps
# required to extract relevant information and annotations.
#
# data - String containing the comment being parsed
#
# Returns a Hash containing the parsed content for the comment.
Loads the provided data into the parser and executes all steps
required to extract relevant information and annotations.

String containing the comment being parsed

Returns a Hash containing the parsed content for the comment.
Loads the provided data into the parser and executes all steps required to extract relevant information and annotations . String containing the comment being parsed Returns a Hash containing the parsed content for the comment .
def parse(data)
      load(data)
      coalesce_field_list
      detect_code_example
      infer_visibility_from_doc if %i[def defs].include? @type
      data = to_h
      data[:contents] = detect_references(data[:contents])
      data
    end
def parse ( data ) load ( data ) coalesce_field_list detect_code_example infer_visibility_from_doc if %i[ def defs ] . include? @type data = to_h data [ :contents ] = detect_references ( data [ :contents ] ) data end
Intenral: Loads the provided data into the parser and executes all steps
required to extract relevant information and annotations.
Intenral : Loads the provided data into the parser and executes all steps required to extract relevant information and annotations .
data