Jeppe Jakobsen wrote:
> string[0] = string[0].chr.upcase
Yep this is the one.
I think [0] is more natural.
I don't need a range.
So with a slight change:
string = "this is a String"
string[0] = string[0].chr.capitalize
Thanx All
--
Posted via http://www.ruby-forum.com/.