Method: String#tr_s!
- Defined in:
- string.c
#tr_s!(selector, replacements) ⇒ self?
Like String#tr_s, but modifies self
in place. Returns self
if any changes were made, nil
otherwise.
Related: String#squeeze!.
8964 8965 8966 8967 8968 |
# File 'string.c', line 8964
static VALUE
rb_str_tr_s_bang(VALUE str, VALUE src, VALUE repl)
{
return tr_trans(str, src, repl, 1);
}
|