/usr/lib/ruby/vendor_ruby/nokogiri/xml/sax/parser_context.rb is in ruby-nokogiri 1.6.7.2-3build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 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
|