Sha256: 083056395adda9aba07fe28d751c40c4520c38fedc1968d3fdd3a2cd7b3cb49c

Contents?: true

Size: 449 Bytes

Versions: 50

Compression:

Stored size: 449 Bytes

Contents

module Nokogiri
  module XML
    class DocumentFragment < Node

      def self.new(document, *rest) # :nodoc:
        node_ptr = LibXML.xmlNewDocFragment(document.cstruct)
        node_cstruct = LibXML::XmlNode.new(node_ptr)
        node_cstruct.keep_reference_from_document!

        node = Node.wrap(node_cstruct, self)

        node.send :initialize, document, *rest
        yield node if block_given?

        node
      end

    end
  end
end

Version data entries

50 entries across 50 versions & 9 rubygems

Version Path
domo-0.0.4 vendor/bundle/ruby/1.9.1/gems/nokogiri-1.4.4/lib/nokogiri/ffi/xml/document_fragment.rb
nokogiri-1.4.7-java lib/nokogiri/ffi/xml/document_fragment.rb
nokogiri-1.4.7-x86-mingw32 lib/nokogiri/ffi/xml/document_fragment.rb
nokogiri-1.4.7-x86-mswin32-60 lib/nokogiri/ffi/xml/document_fragment.rb
nokogiri-1.4.7 lib/nokogiri/ffi/xml/document_fragment.rb
search_biomodel-1.0.0 search_biomodel/ruby/1.8/gems/nokogiri-1.4.6/lib/nokogiri/ffi/xml/document_fragment.rb
nokogiri-1.4.6 lib/nokogiri/ffi/xml/document_fragment.rb
nokogiri-1.4.6-java lib/nokogiri/ffi/xml/document_fragment.rb
nokogiri-1.4.6-x86-mingw32 lib/nokogiri/ffi/xml/document_fragment.rb
nokogiri-1.4.6-x86-mswin32-60 lib/nokogiri/ffi/xml/document_fragment.rb
nokogiri-1.4.5-java lib/nokogiri/ffi/xml/document_fragment.rb
nokogiri-1.4.5 lib/nokogiri/ffi/xml/document_fragment.rb
nokogiri-1.4.5-x86-mswin32-60 lib/nokogiri/ffi/xml/document_fragment.rb
nokogiri-1.4.5-x86-mingw32 lib/nokogiri/ffi/xml/document_fragment.rb
nokogiri-1.4.4.2-java lib/nokogiri/ffi/xml/document_fragment.rb
nokogiri-1.4.4.1-x86-mswin32 lib/nokogiri/ffi/xml/document_fragment.rb
nokogiri-1.4.4.1-x86-mingw32 lib/nokogiri/ffi/xml/document_fragment.rb
nokogiri-1.4.4-x86-mswin32 lib/nokogiri/ffi/xml/document_fragment.rb
nokogiri-1.4.4-x86-mingw32 lib/nokogiri/ffi/xml/document_fragment.rb
nokogiri-1.4.4-java lib/nokogiri/ffi/xml/document_fragment.rb