--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Processes a copy of str as described under String#tr, then removes duplicate characters in regions that were affected by the translation. - !ruby/struct:SM::Flow::VERB body: " "hello".tr_s('l', 'r') #=> "hero"\n "hello".tr_s('el', '*') #=> "h*o"\n "hello".tr_s('el', 'hx') #=> "hhxo"\n" full_name: String#tr_s is_singleton: false name: tr_s params: | str.tr_s(from_str, to_str) => new_str visibility: public