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

Version Path
nokogiri-1.11.6-x86_64-darwin lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.11.6-x86-mingw32 lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.11.6-x86-linux lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.11.6-x64-mingw32 lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.11.6-java lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.11.6-arm64-darwin lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.11.5 lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.11.5-x86_64-linux lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.11.5-x86_64-darwin lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.11.5-x86-mingw32 lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.11.5-x86-linux lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.11.5-x64-mingw32 lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.11.5-java lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.11.5-arm64-darwin lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.11.4 lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.11.4-x86_64-linux lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.11.4-x86_64-darwin lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.11.4-x86-mingw32 lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.11.4-x86-linux lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.11.4-x64-mingw32 lib/nokogiri/xml/sax/parser_context.rb