Method: JsDuck::Merger#detect_doc

Defined in:
lib/jsduck/merger.rb

#detect_doc(docs) ⇒ Object

Combines :doc-s of most tags Ignores tags that have doc comment themselves and subproperty tags



475
476
477
478
479
# File 'lib/jsduck/merger.rb', line 475

def detect_doc(docs)
  ignore_tags = [:param, :return, :meta]
  doc_tags = docs.find_all { |tag| !ignore_tags.include?(tag[:tagname]) && !subproperty?(tag) }
  doc_tags.map { |tag| tag[:doc] }.compact.join(" ")
end