Question : capitalize composed name ruby
Answered by : blushing-bird-aw0r7d0u5nub
require 'active_support/core_ext'
"kirk douglas".titleize #=> "Kirk Douglas"
Source : https://stackoverflow.com/questions/13520162/ruby-capitalize-every-word-first-letter | Last Update : Wed, 03 Feb 21
Question : capitalize composed name ruby
Answered by : blushing-bird-aw0r7d0u5nub
'one TWO three foUR'.gsub(/\w+/, &:capitalize)
Source : https://stackoverflow.com/questions/13520162/ruby-capitalize-every-word-first-letter | Last Update : Wed, 03 Feb 21