class Nokogiri::XML::SAX::ParserContext
def io(input, encoding = nil)
methods which are more convenient for most use cases.
💡 Calling this method directly is discouraged. Use Nokogiri::XML::SAX::Parser parse
[Returns] Nokogiri::XML::SAX::ParserContext
encoding to use (default +nil+, encoding will be autodetected)
- +encoding+ (optional) (Encoding) The +Encoding+ to use, or the name of an
- +io+ (IO) The readable IO object from which to read input
[Parameters]
Create a parser context for an +input+ IO which will assume +encoding+
io(input, encoding)
io(input)
:call-seq:
##
def io(input, encoding = nil) native_io(input, resolve_encoding(encoding)) end