lib/docrb/lib/docrb/comment_parser.rb
# Internal: Attempts to find and split field lists from the loaded comment.
Attempts to find and split field lists from the loaded comment.
Attempts to find and split field lists from the loaded comment .
def coalesce_field_list
      return if @field_list_coalesced
      @field_list_coalesced = true
      new_contents = []
      has_field_list = false
      @components.each do |block|
        unless has_field_list
          parser = FieldListParser.new(block.text)
          if parser.detect
            has_field_list = true
            new_contents << FieldBlock.new(parser.result)
            next
          end
        end
        new_contents << block
      end
      @components = new_contents
    end
def coalesce_field_list return if @field_list_coalesced @field_list_coalesced = true new_contents = [ ] has_field_list = false @components . each do | block | unless has_field_list parser = FieldListParser . new ( block . text ) if parser . detect has_field_list = true new_contents << FieldBlock . new ( parser . result ) next end end new_contents << block end @components = new_contents end
Internal: Attempts to find and split field lists from the loaded comment.
Internal : Attempts to find and split field lists from the loaded comment .