Answers for "ruby capitalize all letters"

1

ruby capitalize first character of sentence

a = "apples and oranges are two diffERent Fruits."
a.split.each{|i| i.capitalize!}.join(' ')

=> "Apples And Oranges Are Two Different Fruits."
Posted by: Guest on August-13-2021
0

capitalize composed name ruby

require 'active_support/core_ext'
"kirk douglas".titleize #=> "Kirk Douglas"
Posted by: Guest on January-27-2021
0

capitalize composed name ruby

'one TWO three foUR'.gsub(/\w+/, &:capitalize)
Posted by: Guest on January-27-2021

Code answers related to "ruby capitalize all letters"

Browse Popular Code Answers by Language