Class: Hash

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

Instance Method Summary collapse

Instance Method Details

#to_plist(options = {}) ⇒ Object

convert a hash to plist format



415
416
417
418
419
420
421
# File 'lib/rbCFPropertyList.rb', line 415

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])
end