Class: Hash

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

Instance Method Summary collapse

Instance Method Details

#to_plist(options = {}) ⇒ Object

convert a hash to plist format



440
441
442
443
444
445
446
# File 'lib/cfpropertylist/rbCFPropertyList.rb', line 440

def to_plist(options={})
  options[:plist_format] ||= CFPropertyList::List::FORMAT_BINARY

  plist = CFPropertyList::List.new
  plist.value = CFPropertyList.guess(self, options)
  plist.to_str(options[:plist_format], options)
end