Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

ruby string upper case

'hello David!'.downcase     #=> hello david!
'hello David!'.upcase       #=> HELLO DAVID!
'hello David!'.capitalize   #=> Hello david!
'hello David!'.titleize     #=> Hello David!
'TESTING'.swapcase          #=> testing
'testing'.swapcase          #=> TESTING
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #ruby #string #upper #case
ADD COMMENT
Topic
Name
3+5 =