nokogiri / 1.13.0 / nokogiri / html4 / sax / parsercontext.html /

class Nokogiri::HTML4::SAX::ParserContext

Parent:
Nokogiri::XML::SAX::ParserContext

💡 This class is an alias for Nokogiri::HTML4::SAX::ParserContext as of v1.12.0.

Context for HTML SAX parsers. This class is usually not instantiated by the user. Instead, you should be looking at Nokogiri::HTML4::SAX::Parser

Public Class Methods

new (thing, encoding = "UTF-8") Show source
# File lib/nokogiri/html4/sax/parser_context.rb, line 10
def self.new(thing, encoding = "UTF-8")
  if [:read, :close].all? { |x| thing.respond_to?(x) }
    super
  else
    memory(thing, encoding)
  end
end
Calls superclass method Nokogiri::XML::SAX::ParserContext::new

© 2008–2018 Aaron Patterson, Mike Dalessio, Charles Nutter, Sergio Arbeo,
Patrick Mahoney, Yoko Harada, Akinori MUSHA, John Shahid, Lars Kanis
Licensed under the MIT License.
https://nokogiri.org/rdoc/Nokogiri/HTML4/SAX/ParserContext.html