I want to turn string into CamelCase fashion In Ruby. The question also applies to words with underscores.
"human" => "Human"
"little_human" => "LittleHuman"
In rails there is a
camelize method. In ruby you can write the method on your own. Something like
def camelize(s) s.downcase.split('_').map(&:capitalize).join end