class CodeRay::Scanners::Scanner
def normalize code
scanner's internal encoding, with invalid and undefined charachters
Normalizes the given code into a string with UNIX newlines, in the
def normalize code # original = code code = code.to_s unless code.is_a? ::String return code if code.empty? if code.respond_to? :encoding code = encode_with_encoding code, self.encoding else code = to_unix code end # code = code.dup if code.eql? original code end