Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/cfpropertylist/rbCFPropertyList.rb
Instance Method Summary collapse
-
#to_plist(options = {}) ⇒ Object
convert a hash to plist format.
Instance Method Details
#to_plist(options = {}) ⇒ Object
convert a hash to plist format
456 457 458 459 460 461 462 |
# File 'lib/cfpropertylist/rbCFPropertyList.rb', line 456 def to_plist(={}) [:plist_format] ||= CFPropertyList::List::FORMAT_BINARY plist = CFPropertyList::List.new plist.value = CFPropertyList.guess(self, ) plist.to_str([:plist_format], ) end |