From: matz@... (Yukihiro Matsumoto) Date: 2003-05-02T11:54:35+09:00 Subject: Re: [PATCH] ljust, rjust, and center with pad string (was ljust, rjust...) Hi, In message "[PATCH] ljust, rjust, and center with pad string (was ljust, rjust...)" on 03/05/02, "Warren Brown" writes: |> How about allowing `ljust' and `rjust' take an |> additional parameter (which defaults to the string |> " ") which specifies what it justifies with? |> |> 15.to_s.rjust(5) # --> " 15" |> 15.to_s.rjust(5,'0') # --> "00015" |> 15.to_s.rjust(5,'blue') # --> "blu15" |> |> What do you think? | | I agree wholeheartedly. It's planned for long time. The only reason we don't have them yet is me being to lazy. But now, we have implementation. We need to wait no longer. Thank you, Warren. And Austin, it seems to work with '\0's. matz.