str.rstrip! â self or nil
Instance Public methods
Removes trailing whitespace from str, returning nil
if no change was made. See also String#lstrip!
and
String#strip!
.
1 2 | " hello " .rstrip #=> " hello" "hello" .rstrip! #=> nil |
Please login to continue.