Method: RDoc::Parser::Ruby#new_comment
- Defined in:
- lib/rdoc/parser/ruby.rb
#new_comment(comment, line_no = nil) ⇒ Object
Creates a comment with the correct format
675 676 677 678 679 680 |
# File 'lib/rdoc/parser/ruby.rb', line 675 def new_comment comment, line_no = nil c = RDoc::Comment.new comment, @top_level, :ruby c.line = line_no c.format = @markup c end |