lib/docrb/lib/docrb/comment_parser.rb
def detect_references(on)
      new_contents = []

      on.each do |block|
        case block[:type]
        when :text_block
          block[:contents] = detect_text_references(block[:contents])
        when :field_block
          block[:contents] = detect_field_references(block[:contents])
        end
        new_contents << block
      end

      new_contents
    end
# Internal: Attempts to detect references on a provided list of blocks
#
# on - List of blocks to process
#
# Returns an updated list of blocks with references transformed into
# specialised structures.
Attempts to detect references on a provided list of blocks
on - List of blocks to process

Returns an updated list of blocks with references transformed into
specialised structures.
Attempts to detect references on a provided list of blocks on - List of blocks to process Returns an updated list of blocks with references transformed into specialised structures .
def detect_references(on)
      new_contents = []
      on.each do |block|
        case block[:type]
        when :text_block
          block[:contents] = detect_text_references(block[:contents])
        when :field_block
          block[:contents] = detect_field_references(block[:contents])
        end
        new_contents << block
      end
      new_contents
    end
def detect_references ( on ) new_contents = [ ] on . each do | block | case block [ :type ] when :text_block block [ :contents ] = detect_text_references ( block [ :contents ] ) when :field_block block [ :contents ] = detect_field_references ( block [ :contents ] ) end new_contents << block end new_contents end
Internal: Attempts to detect references on a provided list of blocks
on - List of blocks to process
Internal : Attempts to detect references on a provided list of blocks on - List of blocks to process
on