method
rstrip!
rstrip!()
public
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
rstrip!()
public
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