class LibXML::XML::HTMLParser

def self.file(path, encoding: nil, options: nil)

by using Bitwise OR (|).
XML::HTMLParser::Options. Mutliple options can be combined
options - Parser options. Valid values are the constants defined on
are the encoding constants defined on XML::Encoding.
encoding - The document encoding, defaults to nil. Valid values
path - Path to file to parse

Parameters:

Creates a new parser by parsing the specified file or uri.

options: XML::HTMLParser::Options::NOENT) -> XML::HTMLParser
XML::HTMLParser.file(path, encoding: XML::Encoding::UTF_8,
XML::HTMLParser.file(path) -> XML::HTMLParser
call-seq:
def self.file(path, encoding: nil, options: nil)
  context = XML::HTMLParser::Context.file(path)
  context.encoding = encoding if encoding
  context.options = options if options
  self.new(context)
end