Hi,
In message "sprintf() bug"
on 03/02/13, "Warren Brown" <wkb / airmail.net> writes:
| I have run across a discrepancy between the documentation and ruby
|1.6.8. According to the pickaxe book, the flag character '0' changes
|padding from spaces (' ') to zeros ('0'). This works for numbers, but does
|not work for stings:
Pickaxe is great, but not perfect (nor me).
| It occurred to me that String#ljust and String#rjust really seem like
|they should have an optional second parameter that defaults to ' ', but
|could be any character (or any string?). Anyone else think this is a good
|idea?
This sounds nice. In fact, I have a plan to do so.
matz.