Sha256: 826c10d2babef194c428a5438173eb6e08b0cf72319eb7fcc297065962ee7134
Contents?: true
Size: 963 Bytes
Versions: 19
Compression:
Stored size: 963 Bytes
Contents
module Nokogiri module HTML class Document < XML::Document attr_accessor :cstruct # :nodoc: def self.new(*args) # :nodoc: uri = args[0] external_id = args[1] doc = wrap(LibXML.htmlNewDoc(uri, external_id)) doc.send :initialize, *args doc end def self.read_io(io, url, encoding, options) # :nodoc: wrap_with_error_handling do LibXML.htmlReadIO(IoCallbacks.reader(io), nil, nil, url, encoding, options) end end def self.read_memory(string, url, encoding, options) # :nodoc: wrap_with_error_handling do LibXML.htmlReadMemory(string, string.length, url, encoding, options) end end def meta_encoding=(encoding) # :nodoc: LibXML.htmlSetMetaEncoding(cstruct, encoding) encoding end def meta_encoding # :nodoc: LibXML.htmlGetMetaEncoding(cstruct) end end end end
Version data entries
19 entries across 19 versions & 2 rubygems