Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save zorn/5718911 to your computer and use it in GitHub Desktop.
Save zorn/5718911 to your computer and use it in GitHub Desktop.
- (id)initWithBeer:(BHBeer *)beer
{
NSAssert(beer != nil, @"beer is required");
self = [super init];
if (self) {
self.beer = beer;
}
return self;
}
@amrox
Copy link

amrox commented Jun 6, 2013

I'd do a NSParameterAssert(beer) but otherwise looks solid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment