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
domo-0.0.4 vendor/bundle/ruby/1.9.1/gems/nokogiri-1.4.4/lib/nokogiri/ffi/xml/processing_instruction.rb
nokogiri-1.4.7-java lib/nokogiri/ffi/xml/processing_instruction.rb
nokogiri-1.4.7-x86-mingw32 lib/nokogiri/ffi/xml/processing_instruction.rb
nokogiri-1.4.7-x86-mswin32-60 lib/nokogiri/ffi/xml/processing_instruction.rb
nokogiri-1.4.7 lib/nokogiri/ffi/xml/processing_instruction.rb
search_biomodel-1.0.0 search_biomodel/ruby/1.8/gems/nokogiri-1.4.6/lib/nokogiri/ffi/xml/processing_instruction.rb
nokogiri-1.4.6 lib/nokogiri/ffi/xml/processing_instruction.rb
nokogiri-1.4.6-java lib/nokogiri/ffi/xml/processing_instruction.rb
nokogiri-1.4.6-x86-mingw32 lib/nokogiri/ffi/xml/processing_instruction.rb
nokogiri-1.4.6-x86-mswin32-60 lib/nokogiri/ffi/xml/processing_instruction.rb
nokogiri-1.4.5-java lib/nokogiri/ffi/xml/processing_instruction.rb
nokogiri-1.4.5 lib/nokogiri/ffi/xml/processing_instruction.rb
nokogiri-1.4.5-x86-mswin32-60 lib/nokogiri/ffi/xml/processing_instruction.rb
nokogiri-1.4.5-x86-mingw32 lib/nokogiri/ffi/xml/processing_instruction.rb
nokogiri-1.4.4.2-java lib/nokogiri/ffi/xml/processing_instruction.rb
nokogiri-1.4.4.1-x86-mswin32 lib/nokogiri/ffi/xml/processing_instruction.rb
nokogiri-1.4.4.1-x86-mingw32 lib/nokogiri/ffi/xml/processing_instruction.rb
nokogiri-1.4.4-x86-mswin32 lib/nokogiri/ffi/xml/processing_instruction.rb
nokogiri-1.4.4-x86-mingw32 lib/nokogiri/ffi/xml/processing_instruction.rb
nokogiri-1.4.4-java lib/nokogiri/ffi/xml/processing_instruction.rb