Method: RDoc::Parser::Simple#remove_coding_comment

Defined in:
lib/rdoc/parser/simple.rb

#remove_coding_comment(text) ⇒ Object

Removes the encoding magic comment from text



40
41
42
# File 'lib/rdoc/parser/simple.rb', line 40

def remove_coding_comment text
  text.sub(/\A# .*coding[=:].*$/, '')
end