Method: String#rstrip!
- Defined in:
- string.c
#rstrip! ⇒ self?
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
4220 4221 4222 |
# File 'string.c', line 4220 static VALUE rb_str_rstrip_bang(str) VALUE str; |