Sha256: 4f960951b461774e2c84bc1fa77672f8624f55c3053f5f0d5827cdaba0e4cd5b
Contents?: true
Size: 540 Bytes
Versions: 69
Compression:
Stored size: 540 Bytes
Contents
module Nokogiri module XML class ProcessingInstruction < Node attr_accessor :cstruct # :nodoc: def self.new(document, name, content, *rest) # :nodoc: node_ptr = LibXML.xmlNewDocPI(document.cstruct, name.to_s, content.to_s) node_cstruct = LibXML::XmlNode.new(node_ptr) node_cstruct.keep_reference_from_document! node = Node.wrap(node_cstruct, self) node.send :initialize, document, name, content, *rest yield node if block_given? node end end end end
Version data entries
69 entries across 69 versions & 10 rubygems