Sha256: f33658add612c8b753eefb1b260c8a195ad4360b7bcb7a4a73e80ef682985b5f

Contents?: true

Size: 428 Bytes

Versions: 19

Compression:

Stored size: 428 Bytes

Contents

module Nokogiri
  module XML
    class Text < Node

      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

    end
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
akamai_bookmarklet-0.1.2 vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/xml/text.rb
akamai_bookmarklet-0.1.1 vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/xml/text.rb
akamai_bookmarklet-0.1.0 vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/xml/text.rb
nokogiri-1.3.3-x86-mswin32 lib/nokogiri/ffi/xml/text.rb
nokogiri-1.3.3-x86-mingw32 lib/nokogiri/ffi/xml/text.rb
nokogiri-1.3.3-java lib/nokogiri/ffi/xml/text.rb
nokogiri-1.3.2-x86-mswin32 lib/nokogiri/ffi/xml/text.rb
nokogiri-1.3.2-x86-mingw32 lib/nokogiri/ffi/xml/text.rb
nokogiri-1.3.2-java lib/nokogiri/ffi/xml/text.rb
nokogiri-1.3.0-x86-mingw32 lib/nokogiri/ffi/xml/text.rb
nokogiri-1.3.2 lib/nokogiri/ffi/xml/text.rb
nokogiri-1.3.3 lib/nokogiri/ffi/xml/text.rb
nokogiri-1.3.0-java lib/nokogiri/ffi/xml/text.rb
nokogiri-1.3.0-x86-mswin32 lib/nokogiri/ffi/xml/text.rb
nokogiri-1.3.1-java lib/nokogiri/ffi/xml/text.rb
nokogiri-1.3.0 lib/nokogiri/ffi/xml/text.rb
nokogiri-1.3.1-x86-mingw32 lib/nokogiri/ffi/xml/text.rb
nokogiri-1.3.1 lib/nokogiri/ffi/xml/text.rb
nokogiri-1.3.1-x86-mswin32 lib/nokogiri/ffi/xml/text.rb