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