module
RDoc::Encoding
v2_6_3 -
Show latest stable
This class is a wrapper around File IO and Encoding that helps RDoc load files and convert them to the correct encoding.
Constants
HEADER_REGEXP = /^\n(?:\n\\A\\#!.*\\n\n|\n^\\#\\s+frozen[-_]string[-_]literal[=:].+\\n\n|\n^\\#[^\\n]+\\b(?:en)?coding[=:]\\s*(?<name>[^\\s;]+).*\\n\n|\n<\\?xml[^?]*encoding=(?<quote>["'])(?<name>.*?)\\k<quote>.*\\n\n)+\n/xi
Files
- lib/rdoc/encoding.rb