التابع String.rjust في روبي
يعيد التابع rjust ب
البنية العامة
rjust(integer, padstr=' ') → new_str
القيمة المعادة
يعاد
أمثلة
مثال على استعمال التابع rjust:
"hello".rjust(4) #=> "hello"
"hello".rjust(20) #=> " hello"
"hello".rjust(20, '1234') #=> "123412341234123hello"