method
rstrip
v2_1_10 -
Show latest stable
- Class:
String
rstrip()public
Returns a copy of str with trailing whitespace removed. See also String#lstrip and String#strip.
" hello ".rstrip #=> " hello" "hello".rstrip #=> "hello"
rstrip()Returns a copy of str with trailing whitespace removed. See also String#lstrip and String#strip.
" hello ".rstrip #=> " hello" "hello".rstrip #=> "hello"