Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (22 sloc) 610 Bytes
//
// NSString+ActiveSupportInflector.m
// ActiveSupportInflector
//
//#import "NSString+MSAdditions.h"
#import "ActiveSupportInflector.h"
@implementation NSString (ActiveSupportInflector)
- (NSString *)pluralizeString {
static ActiveSupportInflector *inflector = nil;
if (!inflector) {
inflector = [[ActiveSupportInflector alloc] init];
}
return [inflector pluralize:self];
}
- (NSString *)singularizeString {
static ActiveSupportInflector *inflector = nil;
if (!inflector) {
inflector = [[ActiveSupportInflector alloc] init];
}
return [inflector singularize:self];
}
@end