class Nokogiri::XML::Text
def self.new(string, document, *rest) # :nodoc:
def self.new(string, document, *rest) # :nodoc: node_ptr = LibXML.xmlNewText(string) node_cstruct = LibXML::XmlNode.new(node_ptr) node_cstruct[:doc] = document.cstruct node = Node.wrap(node_cstruct, self) node.send :initialize, string, document, *rest yield node if block_given? node end