lib/PackingPeanut-ios/PackingPeanut.rb in PackingPeanut-1.1.0 vs lib/PackingPeanut-ios/PackingPeanut.rb in PackingPeanut-1.2.0

- old
+ new

@@ -41,9 +41,16 @@ storage.removeObjectForKey(storage_key(key)) storage.synchronize value end + def delete_all! + all.keys.each do |k| + storage.removeObjectForKey(storage_key(k)) + end + storage.synchronize + end + def storage NSUserDefaults.standardUserDefaults end def storage_key(key)