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

def self.io(io, base_uri: nil, 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
base_uri - The base url for the parsed document.
io - io object that contains the xml to parser

Parameters:

Creates a new reader by parsing the specified io object.

base_uri: "http://libxml.org") -> XML::HTMLParser
options: XML::HTMLParser::Options::NOENT
XML::HTMLParser.io(io, encoding: XML::Encoding::UTF_8,
XML::HTMLParser.io(io) -> XML::HTMLParser
call-seq:
def self.io(io, base_uri: nil, encoding: nil, options: nil)
  context = XML::HTMLParser::Context.io(io)
  context.base_uri = base_uri if base_uri
  context.encoding = encoding if encoding
  context.options = options if options
  self.new(context)
end

def self.string(string, base_uri: nil, 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
base_uri - The base url for the parsed document.
string - String to parse

Parameters:

Creates a new parser by parsing the specified string.

base_uri: "http://libxml.org") -> XML::HTMLParser
options: XML::HTMLParser::Options::NOENT
XML::HTMLParser.string(string, encoding: XML::Encoding::UTF_8,
XML::HTMLParser.string(string)
call-seq:
def self.string(string, base_uri: nil, encoding: nil, options: nil)
  context = XML::HTMLParser::Context.string(string)
  context.base_uri = base_uri if base_uri
  context.encoding = encoding if encoding
  context.options = options if options
  self.new(context)
end

def file=(value)

def file=(value)
  warn("XML::HTMLParser#file is deprecated.  Use XML::HTMLParser.file instead")
  @context = XML::HTMLParser::Context.file(value)
end

def io=(value)

def io=(value)
  warn("XML::HTMLParser#io is deprecated.  Use XML::HTMLParser.io instead")
  @context = XML::HTMLParser::Context.io(value)
end

def string=(value)

def string=(value)
  warn("XML::HTMLParser#string is deprecated.  Use XML::HTMLParser.string instead")
  @context = XML::HTMLParser::Context.string(value)
end