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) = [:param, :return, :meta] = docs.find_all { |tag| !.include?(tag[:tagname]) && !subproperty?(tag) } .map { |tag| tag[:doc] }.compact.join(" ") end |