/Mugjective-C

Empty array litterals look like mugs.

Primary LanguageObjective-C

Mugjective-C : because empty array literals look like mugs

Special thanks to notjosh for the name.

Installation

  1. Drop the NSArray+PCSMugjectiveC.h and NSArray+PCSMugjectiveC.m files into your project.
  2. Have fun with the pcs_looksLikeAMug method

Example

#import "NSArray+PCSMugjectiveC.h"

- (void)doSomething {
    if ([@[] pcs_looksLikeAMug]) {
    	NSLog(@"My array looks like a mug");
    }
}

Licence

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004

Copyright (C) 2015 Romain Pouclet palleas@gmail.com

Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

  1. You just DO WHAT THE FUCK YOU WANT TO.