= private = protected
rstrip()
Returns a copy of str with trailing whitespace removed. See also String#lstrip and String#strip.
" hello ".rstrip #=> " hello" "hello".rstrip #=> "hello"
static VALUE rb_str_rstrip(VALUE str) { str = rb_str_dup(str); rb_str_rstrip_bang(str); return str; }