Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (17 sloc) 571 Bytes
//
// NSString+ActiveSupportInflector.m
// ActiveSupportInflector
//
#import "NSString+MSAdditions.h"
#import "ActiveSupportInflector.h"
@implementation NSString (ActiveSupportInflector)
static ActiveSupportInflector *inflector = NULL;
- (NSString *)pluralizeString {
_AtomicallyInitObjCPointer(&inflector, [[ActiveSupportInflector alloc] init], NULL);
return([inflector pluralize:self]);
}
- (NSString *)singularizeString {
_AtomicallyInitObjCPointer(&inflector, [[ActiveSupportInflector alloc] init], NULL);
return([inflector singularize:self]);
}
@end