strip_hashes(text)
Strips leading # characters from text
# File lib/rdoc/text.rb, line 106 def strip_hashes text return text if text =~ /^(?>\s*)[^\#]/ text.gsub(/^\s*(#+)/) { $1.tr '#',' ' } end