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!
.
" hello ".rstrip #=> " hello" "hello".rstrip! #=> nil
Removes trailing whitespace from str, returning nil
if no change was made. See also String#lstrip!
and
String#strip!
.
" hello ".rstrip #=> " hello" "hello".rstrip! #=> nil
Please login to continue.