This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SmartKeyBase: Equatable, Hashable { | |
private let defaults = NSUserDefaults.standardUserDefaults() | |
private(set) static var allKeys = Set<SmartKeyBase>() | |
let name: String | |
static func removeAllValues() { | |
allKeys.forEach { $0.removeValue() } | |
} | |
init(_ name: String) { |