Method: RDoc::Parser::C#new_comment

Defined in:
lib/rdoc/parser/c.rb

#new_comment(text = nil, location = nil, language = nil) ⇒ Object

Creates a RDoc::Comment instance.



1255
1256
1257
1258
1259
# File 'lib/rdoc/parser/c.rb', line 1255

def new_comment text = nil, location = nil, language = nil
  RDoc::Comment.new(text, location, language).tap do |comment|
    comment.format = @markup
  end
end