Sha256: 50e825d87003929db4be0910f4a145cdaf69aa83696e079f1f598c453ab5b0f4

Contents?: true

Size: 379 Bytes

Versions: 1

Compression:

Stored size: 379 Bytes

Contents

#import "YapNull.h"


@implementation YapNull

static YapNull *singleton;

+ (void)initialize
{
	static BOOL initialized = NO;
	if (!initialized)
	{
		initialized = YES;
		singleton = [[YapNull alloc] init];
	}
}

+ (id)null
{
	return singleton;
}

- (id)init
{
	NSAssert(singleton == nil, @"Must use singleton via [YapNull null]");
	
	self = [super init];
	return self;
}

@end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
motion-yapper-0.0.1 vendor/Pods/YapDatabase/YapDatabase/Internal/YapNull.m