Class: CFPropertyList::CFUid
- Defined in:
- lib/cfpropertylist/rbCFTypes.rb
Instance Attribute Summary
Attributes inherited from CFType
Instance Method Summary collapse
-
#to_binary(bplist) ⇒ Object
convert to binary.
- #to_xml(parser) ⇒ Object
Methods inherited from CFType
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 |