1 2 3
def set_abbreviation self.abbreviation = full_name.split(" ").map {|name| name[0].chr }.join end
Ruby On Help generating abbreviatio...
by leethal,
April 07, 2008 09:56
I'd just use the first char...
1 2 3
def set_abbreviation self.abbreviation = full_name.split(" ").map {|name| name[0].chr }.join end
Ruby On Help generating abbreviatio...
by leethal,
April 07, 2008 09:55
I'd just use the first char...
