From: Chris Pine Date: 2003-05-02T02:35:10+09:00 Subject: ljust, rjust... Just thought I would run these ideas by everyone: 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? (Mostly, I just want to pad numbers with leading zeros. Yes, of course I can change `rjust' myself, yadda-yadda... but then there's that "you really shouldn't modify the core classes" thing. Doesn't seem quire right, does it?) Chris