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



339
340
341
# File 'lib/cfpropertylist/rbCFTypes.rb', line 339

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

#to_plain(plist) ⇒ Object



343
344
345
# File 'lib/cfpropertylist/rbCFTypes.rb', line 343

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

#to_xml(parser) ⇒ Object



334
335
336
# File 'lib/cfpropertylist/rbCFTypes.rb', line 334

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