create a string is with Kernel's String method: : string variable « String « Ruby






create a string is with Kernel's String method:


title = String( "Much Ado about Nothing" )
puts title # => Much Ado about Nothing

 








Related examples in the same category

1.A string is a sequence of letters, numbers, and other characters.
2.Assign strings to variables:
3.String reference