Module: Plist

Defined in:
lib/idevice/plist.rb

Overview

extensions on the Plist rubygem module for working with libplist plist_t objects

Class Method Summary collapse

Class Method Details

.binary_to_pointer(data) ⇒ Object


32
33
34
# File 'lib/idevice/plist.rb', line 32

def self.binary_to_pointer(data)
  Idevice::Plist_t.from_binary(data)
end

.parse_binary(data) ⇒ Object


36
37
38
39
40
41
42
# File 'lib/idevice/plist.rb', line 36

def self.parse_binary(data)
  plist_ptr = binary_to_pointer(data)
  if plist_ptr
    res = pointer_to_ruby(plist_ptr)
    return res
  end
end

.pointer_to_ruby(plist_ptr) ⇒ Object


44
45
46
# File 'lib/idevice/plist.rb', line 44

def self.pointer_to_ruby(plist_ptr)
  plist_ptr.to_ruby
end

.xml_to_pointer(xml) ⇒ Object


28
29
30
# File 'lib/idevice/plist.rb', line 28

def self.xml_to_pointer(xml)
  Idevice::Plist_t.from_xml(xml)
end