Method: RDoc::Text#normalize_comment

Defined in:
lib/rdoc/text.rb

#normalize_comment(text) ⇒ Object

Strips hashes, expands tabs then flushes text to the left



122
123
124
125
126
127
128
129
130
131
# File 'lib/rdoc/text.rb', line 122

def normalize_comment text
  return text if text.empty?

  text = strip_stars    text
  text = strip_hashes   text
  text = expand_tabs    text
  text = flush_left     text
  text = strip_newlines text
  text
end