method

set_encoding

ruby latest stable - Class: RDoc::Encoding
set_encoding(string)
public

Sets the encoding of string based on the magic comment