Class: YARD::Docstring

Inherits:
Object
  • Object
show all
Defined in:
lib/yard-tomdoc/yard070.rb

Instance Method Summary collapse

Instance Method Details

#parse_comments(comments) ⇒ Object



4
5
6
7
8
# File 'lib/yard-tomdoc/yard070.rb', line 4

def parse_comments(comments)
  comment = [comments].flatten.join("\n")
  tomdoc  = TomDoc.yard_parse(self, comment)
  tomdoc.description.to_s  # return the modified comment
end