Skip to content

Palleas/Mugjective-C

Repository files navigation

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 [email protected]

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.

About

Empty array litterals look like mugs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published