lib/rdoc/comment.rb in rdoc-6.1.2.1 vs lib/rdoc/comment.rb in rdoc-6.2.0

- old
+ new

@@ -32,21 +32,27 @@ # The text for this comment attr_reader :text ## + # Alias for text + + alias to_s text + + ## # Overrides the content returned by #parse. Use when there is no #text # source for this comment attr_writer :document ## # Creates a new comment with +text+ that is found in the RDoc::TopLevel # +location+. - def initialize text = nil, location = nil + def initialize text = nil, location = nil, language = nil @location = location @text = text.nil? ? nil : text.dup + @language = language @document = nil @format = 'rdoc' @normalized = false end