Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

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."
 
PREVIOUS NEXT
Tagged: #ruby #capitalize #character #sentence
ADD COMMENT
Topic
Name
8+6 =