Class: Nokogiri::LibXML::XmlNodeSet

Inherits:
FFI::ManagedStruct
  • Object
show all
Includes:
XmlNodeSetMixin
Defined in:
lib/nokogiri/ffi/structs/xml_node_set.rb

Overview

:nodoc:

Class Method Summary collapse

Methods included from XmlNodeSetMixin

#document, included, #nodeAt, #nodeTab, #nodeTab=

Class Method Details

.release(ptr) ⇒ Object



40
41
42
43
44
# File 'lib/nokogiri/ffi/structs/xml_node_set.rb', line 40

def self.release ptr
  ns = XmlNodeSetCast.new(ptr)
  LibXML.xmlFree ns[:nodeTab] if ns[:nodeTab]
  LibXML.xmlFree ptr
end