Method: RDoc::Comment#initialize

Defined in:
lib/rdoc/comment.rb

#initialize(text = nil, location = nil) ⇒ Comment

Creates a new comment with text that is found in the RDoc::TopLevel location.



46
47
48
49
50
51
52
53
# File 'lib/rdoc/comment.rb', line 46

def initialize text = nil, location = nil
  @location = location
  @text     = text

  @document   = nil
  @format     = 'rdoc'
  @normalized = false
end