Sha256: 3dbb21764a74ea78cb1f1ec51600a0bfaffeefe62e708566d8a1f126e9c1da58
Contents?: true
Size: 494 Bytes
Versions: 163
Compression:
Stored size: 494 Bytes
Contents
# frozen_string_literal: true module Nokogiri module XML module SAX ### # Context for XML SAX parsers. This class is usually not instantiated # by the user. Instead, you should be looking at # Nokogiri::XML::SAX::Parser class ParserContext def self.new thing, encoding = 'UTF-8' [:read, :close].all? { |x| thing.respond_to?(x) } ? io(thing, Parser::ENCODINGS[encoding]) : memory(thing) end end end end end
Version data entries
163 entries across 156 versions & 6 rubygems