التابع String.replace في روبي
يعيد التابع replace ب
البنية العامة
replace(other_str) → str
القيمة المعادة
يعاد
أمثلة
مثال على استعمال التابع replace:
s = "hello" #=> "hello"
s.replace "world" #=> "world"