Class: CFPropertyList::CFUid

Inherits:
CFType
  • Object
show all
Defined in:
lib/cfpropertylist/rbCFTypes.rb

Instance Attribute Summary

Attributes inherited from CFType

#value

Instance Method Summary collapse

Methods inherited from CFType

#initialize

Constructor Details

This class inherits a constructor from CFPropertyList::CFType

Instance Method Details

#to_binary(bplist) ⇒ Object

convert to binary



260
261
262
# File 'lib/cfpropertylist/rbCFTypes.rb', line 260

def to_binary(bplist)
  bplist.uid_to_binary(@value)
end

#to_xml(parser) ⇒ Object



255
256
257
# File 'lib/cfpropertylist/rbCFTypes.rb', line 255

def to_xml(parser)
  CFDictionary.new({'CF$UID' => CFInteger.new(@value)}).to_xml(parser)
end