In message "[ruby-talk:18325] capitalizing a string"
    on 01/07/23, jared l. jennings <jjenning / stetson.edu> writes:
|
|Say I've got a string p = 'fooBarPoit'.
|then p.capitalize == 'Foobarpoit'.

 p = 'fooBarPoit'
 puts p.split(/(?=[A-Z])/).collect{|x|x.capitalize}.join

							matz.