Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 31 lines (22 sloc) 0.61 kb
c49db0e @soffes Cleaned up a bit and added category
soffes authored
1 //
2 // NSString+ActiveSupportInflector.m
3 // ActiveSupportInflector
4 //
5
4d3239a @shu223 removed unnecessary import
shu223 authored
6 //#import "NSString+MSAdditions.h"
c49db0e @soffes Cleaned up a bit and added category
soffes authored
7 #import "ActiveSupportInflector.h"
8
9 @implementation NSString (ActiveSupportInflector)
10
11 - (NSString *)pluralizeString {
12 static ActiveSupportInflector *inflector = nil;
13 if (!inflector) {
14 inflector = [[ActiveSupportInflector alloc] init];
15 }
16
17 return [inflector pluralize:self];
18 }
19
20
21 - (NSString *)singularizeString {
22 static ActiveSupportInflector *inflector = nil;
23 if (!inflector) {
24 inflector = [[ActiveSupportInflector alloc] init];
25 }
26
27 return [inflector singularize:self];
28 }
29
30 @end
Something went wrong with that request. Please try again.