Sha256: 4f960951b461774e2c84bc1fa77672f8624f55c3053f5f0d5827cdaba0e4cd5b

Contents?: true

Size: 540 Bytes

Versions: 69

Compression:

Stored size: 540 Bytes

Contents

module Nokogiri
  module XML
    class ProcessingInstruction < Node

      attr_accessor :cstruct # :nodoc:

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

        node = Node.wrap(node_cstruct, self)
        node.send :initialize, document, name, content, *rest
        yield node if block_given?
        node
      end

    end
  end
end

Version data entries

69 entries across 69 versions & 10 rubygems

Version Path
nokogiri-1.4.4 lib/nokogiri/ffi/xml/processing_instruction.rb
nokogiri-1.4.3.1-java lib/nokogiri/ffi/xml/processing_instruction.rb
nokogiri-1.4.3.1-x86-mswin32 lib/nokogiri/ffi/xml/processing_instruction.rb
nokogiri-1.4.3.1-x86-mingw32 lib/nokogiri/ffi/xml/processing_instruction.rb
nokogiri-1.4.3.1 lib/nokogiri/ffi/xml/processing_instruction.rb
nokogiri-1.4.3-java lib/nokogiri/ffi/xml/processing_instruction.rb
nokogiri-1.4.3-x86-mswin32 lib/nokogiri/ffi/xml/processing_instruction.rb
nokogiri-1.4.3-x86-mingw32 lib/nokogiri/ffi/xml/processing_instruction.rb
nokogiri-1.4.3 lib/nokogiri/ffi/xml/processing_instruction.rb
glebm-nokogiri-1.4.2.1 lib/nokogiri/ffi/xml/processing_instruction.rb
nokogiri-1.4.2.1-x86-mswin32 lib/nokogiri/ffi/xml/processing_instruction.rb
nokogiri-1.4.2.1-x86-mingw32 lib/nokogiri/ffi/xml/processing_instruction.rb
nokogiri-1.4.2-java lib/nokogiri/ffi/xml/processing_instruction.rb
nokogiri-1.4.2 lib/nokogiri/ffi/xml/processing_instruction.rb
rubyjedi-nokogiri_java-1.4.0.20100513161003-java lib/nokogiri/ffi/xml/processing_instruction.rb
jwagener-nokogiri-1.4.1 lib/nokogiri/ffi/xml/processing_instruction.rb
akamai_bookmarklet-0.1.2 vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/lib/nokogiri/ffi/xml/processing_instruction.rb
revo-nokogiri-1.4.1-java lib/nokogiri/ffi/xml/processing_instruction.rb
revo-nokogiri-1.4.0.3-java lib/nokogiri/ffi/xml/processing_instruction.rb
revo-nokogiri-1.4.0-java lib/nokogiri/ffi/xml/processing_instruction.rb