Sha256: 75dfe4a74a86d5cdde4f46bc25a589d659d6349c55c3640a6aaaa88866a04298

Contents?: true

Size: 725 Bytes

Versions: 34

Compression:

Stored size: 725 Bytes

Contents

module Nokogiri
  module LibXML # :nodoc:
    module XmlXpathContextMixin # :nodoc:
      def self.included(base)
        base.class_eval do

          layout(
            :doc,  :pointer,
            :node, :pointer
            )

        end
      end

      def node
        LibXML::XmlNode.new(self[:node])
      end

      def document
        p = self[:doc]
        p.null? ? nil : LibXML::XmlDocumentCast.new(p)
      end
    end

    class XmlXpathContext < FFI::ManagedStruct # :nodoc:
      include XmlXpathContextMixin

      def self.release ptr
        LibXML.xmlXPathFreeContext(ptr)
      end
    end

    class XmlXpathContextCast < FFI::Struct # :nodoc:
      include XmlXpathContextMixin
    end

  end
end

Version data entries

34 entries across 34 versions & 4 rubygems

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