Sha256: 15f3789a570a04010c1ac5b72163effbc8afae15d9a971b1f68fb280c5e14776

Contents?: true

Size: 465 Bytes

Versions: 19

Compression:

Stored size: 465 Bytes

Contents

module Nokogiri
  module XML
    class Comment < Node
      
      def self.new(document, content, *rest) # :nodoc:
        node_ptr = LibXML.xmlNewDocComment(document.cstruct, content)
        node_cstruct = LibXML::XmlNode.new(node_ptr)
        node_cstruct.keep_reference_from_document!

        node = Node.wrap(node_ptr, self)
        node.send :initialize, document, content, *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/comment.rb
akamai_bookmarklet-0.1.1 vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/xml/comment.rb
akamai_bookmarklet-0.1.0 vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/xml/comment.rb
nokogiri-1.3.3-x86-mswin32 lib/nokogiri/ffi/xml/comment.rb
nokogiri-1.3.3-x86-mingw32 lib/nokogiri/ffi/xml/comment.rb
nokogiri-1.3.3-java lib/nokogiri/ffi/xml/comment.rb
nokogiri-1.3.2-x86-mswin32 lib/nokogiri/ffi/xml/comment.rb
nokogiri-1.3.2-x86-mingw32 lib/nokogiri/ffi/xml/comment.rb
nokogiri-1.3.2-java lib/nokogiri/ffi/xml/comment.rb
nokogiri-1.3.0-x86-mingw32 lib/nokogiri/ffi/xml/comment.rb
nokogiri-1.3.2 lib/nokogiri/ffi/xml/comment.rb
nokogiri-1.3.3 lib/nokogiri/ffi/xml/comment.rb
nokogiri-1.3.0-java lib/nokogiri/ffi/xml/comment.rb
nokogiri-1.3.1-x86-mingw32 lib/nokogiri/ffi/xml/comment.rb
nokogiri-1.3.1-java lib/nokogiri/ffi/xml/comment.rb
nokogiri-1.3.0-x86-mswin32 lib/nokogiri/ffi/xml/comment.rb
nokogiri-1.3.0 lib/nokogiri/ffi/xml/comment.rb
nokogiri-1.3.1-x86-mswin32 lib/nokogiri/ffi/xml/comment.rb
nokogiri-1.3.1 lib/nokogiri/ffi/xml/comment.rb