Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

String#tr_s!

str.tr_s!(from_str, to_str) → str or nil

Performs String#tr_s processing on str in place, returning str, or nil if no changes were made.

See also #tr_s #undump #tr! #unicode_normalize also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0