Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (11 sloc) 267 Bytes
@NSString {
- trim {
^self stringByTrimmingCharactersInSet: NSCharacterSet whitespaceCharacterSet
}
- capitalize {
^self capitalizedString
}
}
str = " a string "
prepped = str capitalize trim
"'«str»' -> '«prepped»'" print