String.rstrip
Signature
string.rstrip #=> new_string
String.rstrip is the counter whitespace removal method toString.lstrip.string.rstrip returns a new string with trailing whitespace removed.
Examples
"foo bar \r\n\t".rstrip #=> "foo bar"
text =
Documentation Reference
- Log in to post comments
