Sha256: b5ff4c154b545063698f0db74995c443ccab625bb226d53130b7111ff7771abc
Contents?: true
Size: 568 Bytes
Versions: 33
Compression:
Stored size: 568 Bytes
Contents
module Nokogiri module HTML module SAX class Parser < XML::SAX::Parser ### # Parse html stored in +data+ using +encoding+ def parse_memory data, encoding = 'UTF-8' native_parse_memory(data, encoding) end ### # Parse a file with +filename+ def parse_file filename, encoding = 'UTF-8' raise Errno::ENOENT unless File.exists?(filename) raise Errno::EISDIR if File.directory?(filename) native_parse_file filename, encoding end end end end end
Version data entries
33 entries across 33 versions & 2 rubygems