![]() |
VOOZH | about |
center(*args)Centers in . If is greater than the length of returns a new String of length with centered and padded with ; otherwise, returns .
"hello".center(4) #=> "hello" "hello".center(20) #=> " hello " "hello".center(20, '123') #=> "1231231hello12312312"