Method: YARD::Docstring#replace

Defined in:
lib/yard/docstring.rb

#replace(content) ⇒ Object Also known as: all=

Replaces the docstring with new raw content. Called by #all=.

Parameters:

  • content (String)

    the raw comments to be parsed


71
72
73
74
75
76
# File 'lib/yard/docstring.rb', line 71

def replace(content)
  content = content.join("\n") if content.is_a?(Array)
  @tags, @ref_tags = [], []
  @all = content
  super parse_comments(content)
end