Method: TomDoc::Generators::Shomen#clean

Defined in:
lib/shomen/tomdoc.rb

#clean(comment) ⇒ Object (private)

Remove hash prefixes from raw comment.



140
141
142
143
144
145
# File 'lib/shomen/tomdoc.rb', line 140

def clean(comment)
  clean = comment.split("\n").map do |line|
    line =~ /^(\s*# ?)/ ? line.sub($1, '') : nil
  end.compact.join("\n")
  clean
end