Sha256: 346bfbcbd16e967abf7117c14b68311eee13a39db87b286a8d4ca021ae9f9ceb

Contents?: true

Size: 544 Bytes

Versions: 394

Compression:

Stored size: 544 Bytes

Contents

# frozen_string_literal: true

module Nokogiri
  module HTML4
    module SAX
      ###
      # Context for HTML SAX parsers. This class is usually not instantiated by the user. Instead,
      # you should be looking at Nokogiri::HTML4::SAX::Parser
      class ParserContext < Nokogiri::XML::SAX::ParserContext
        def self.new(thing, encoding = "UTF-8")
          if [:read, :close].all? { |x| thing.respond_to?(x) }
            super
          else
            memory(thing, encoding)
          end
        end
      end
    end
  end
end

Version data entries

394 entries across 392 versions & 12 rubygems

Version Path
nokogiri-1.16.6-x86_64-linux lib/nokogiri/html4/sax/parser_context.rb
nokogiri-1.16.6-x86_64-darwin lib/nokogiri/html4/sax/parser_context.rb
nokogiri-1.16.6-x86-mingw32 lib/nokogiri/html4/sax/parser_context.rb
nokogiri-1.16.6-x86-linux lib/nokogiri/html4/sax/parser_context.rb
nokogiri-1.16.6-x64-mingw32 lib/nokogiri/html4/sax/parser_context.rb
nokogiri-1.16.6-x64-mingw-ucrt lib/nokogiri/html4/sax/parser_context.rb
nokogiri-1.16.6-java lib/nokogiri/html4/sax/parser_context.rb
nokogiri-1.16.6-arm64-darwin lib/nokogiri/html4/sax/parser_context.rb
nokogiri-1.16.6-arm-linux lib/nokogiri/html4/sax/parser_context.rb
nokogiri-1.16.6-aarch64-linux lib/nokogiri/html4/sax/parser_context.rb
katalyst-govuk-formbuilder-1.9.2 vendor/bundle/ruby/3.3.0/gems/nokogiri-1.16.5-x86_64-linux/lib/nokogiri/html4/sax/parser_context.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/nokogiri-1.16.5-x86_64-linux/lib/nokogiri/html4/sax/parser_context.rb
nokogiri-1.16.4 lib/nokogiri/html4/sax/parser_context.rb
nokogiri-1.16.4-x86_64-linux lib/nokogiri/html4/sax/parser_context.rb
nokogiri-1.16.4-x86_64-darwin lib/nokogiri/html4/sax/parser_context.rb
nokogiri-1.16.4-x86-mingw32 lib/nokogiri/html4/sax/parser_context.rb
nokogiri-1.16.4-x86-linux lib/nokogiri/html4/sax/parser_context.rb
nokogiri-1.16.4-x64-mingw32 lib/nokogiri/html4/sax/parser_context.rb
nokogiri-1.16.4-x64-mingw-ucrt lib/nokogiri/html4/sax/parser_context.rb
nokogiri-1.16.4-java lib/nokogiri/html4/sax/parser_context.rb