Contents

Roo

Text.rstrip!

Returns a new Text object with the trailing whitespace removed. The trailing whitespace of the original text is also removed.

var a = "Hello   "
var b = a.rstrip!
print(a) # => "Hello"
print(b) # => "Hello"