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-backport-1.11.0 lib/nokogiri/xml/sax/parser_context.rb
tdiary-5.2.0 vendor/bundle/ruby/3.0.0/gems/nokogiri-1.12.5-x86_64-linux/lib/nokogiri/xml/sax/parser_context.rb
tdiary-5.2.0 vendor/bundle/ruby/2.7.0/gems/nokogiri-1.11.6-x86_64-linux/lib/nokogiri/xml/sax/parser_context.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/nokogiri-1.12.5-x86_64-linux/lib/nokogiri/xml/sax/parser_context.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/nokogiri-1.12.5-x86_64-linux/lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.12.5 lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.12.5-x86_64-linux lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.12.5-x86_64-darwin lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.12.5-x86-mingw32 lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.12.5-x86-linux lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.12.5-x64-mingw32 lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.12.5-java lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.12.5-arm64-darwin lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.12.4 lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.12.4-x86_64-linux lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.12.4-x86_64-darwin lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.12.4-x86-mingw32 lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.12.4-x86-linux lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.12.4-x64-mingw32 lib/nokogiri/xml/sax/parser_context.rb
nokogiri-1.12.4-java lib/nokogiri/xml/sax/parser_context.rb