Class: Nokogiri::LibXML::XmlAlloc

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

Overview

this class only exists to create a xmlFree() finalizer

Class Method Summary collapse

Class Method Details

.release(ptr) ⇒ Object



10
11
12
# File 'lib/nokogiri/ffi/structs/xml_alloc.rb', line 10

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