# File lib/yard/code_objects/base.rb, line 409 def docstring=(comments) @docstrings.clear if Docstring === comments @docstring = comments else @docstring = Docstring.new(comments, self) end end