Sha256: 42324817bba70ff07d3c1b2e8c2d6cde96175598ae04839278e07e25a4d59d3d
Contents?: true
Size: 532 Bytes
Versions: 69
Compression:
Stored size: 532 Bytes
Contents
module Nokogiri module XML class CDATA < Text def self.new(document, content, *rest) # :nodoc: length = content.nil? ? 0 : content.length node_ptr = LibXML.xmlNewCDataBlock(document.cstruct[:doc], content, length) node_cstruct = LibXML::XmlNode.new(node_ptr) node_cstruct.keep_reference_from_document! node = Node.wrap(node_cstruct, self) node.send :initialize, document, content, *rest yield node if block_given? node end end end end
Version data entries
69 entries across 69 versions & 10 rubygems