str.rstrip â new_str
Instance Public methods
Returns a copy of str with trailing whitespace removed. See also
String#lstrip
and String#strip
.
1 2 | " hello " .rstrip #=> " hello" "hello" .rstrip #=> "hello" |
Returns a copy of str with trailing whitespace removed. See also
String#lstrip
and String#strip
.
1 2 | " hello " .rstrip #=> " hello" "hello" .rstrip #=> "hello" |
Designed by : w10schools
service@w10schools.com
Please login to continue.