remove_magic_comment(string)
Removes magic comments and shebang
# File lib/rdoc/encoding.rb, line 112 def self.remove_magic_comment string string.sub HEADER_REGEXP do |s| s.gsub(/[^\n]/, '') end end