Contents

Roo

Text.capitalise!

Returns a new Text object where the first letter of each word is capitalised. The first letter of each word of the original text is also capitalised.

var a = "hello world"
var b = a.capitalise!
print(a) # => "Hello World"
print(b) # => "Hello World"