Sha256: b38b63d60d447b48eccd7c459ca4240c985ba75a485e41d186346c21f206ba97
Contents?: true
Size: 386 Bytes
Versions: 3
Compression:
Stored size: 386 Bytes
Contents
#import "YapTouch.h" @implementation YapTouch static YapTouch *singleton; + (void)initialize { static BOOL initialized = NO; if (!initialized) { initialized = YES; singleton = [[YapTouch alloc] init]; } } + (id)touch { return singleton; } - (id)init { NSAssert(singleton == nil, @"Must use singleton via [YapTouch touch]"); self = [super init]; return self; } @end
Version data entries
3 entries across 3 versions & 1 rubygems