Sha256: 07032cf2389379a9ddef9338a3f7072509a14ad0598a49dfcfe5ea23abc64526
Contents?: true
Size: 443 Bytes
Versions: 50
Compression:
Stored size: 443 Bytes
Contents
module Nokogiri module XML class Text < CharacterData def self.new(string, document, *rest) # :nodoc: node_ptr = LibXML.xmlNewText(string) node_cstruct = LibXML::XmlNode.new(node_ptr) node_cstruct[:doc] = document.cstruct[:doc] node = Node.wrap(node_cstruct, self) node.send :initialize, string, document, *rest yield node if block_given? node end end end end
Version data entries
50 entries across 50 versions & 9 rubygems