Hi.

I'm using one-click-installer Ruby 1.8.2 (2004-11-06) on WinXP-SP1 and
I think I have a bug in the String method #rjust

irb(main):002:0> "0".rjust( 2, "-" )
=> " 0"
irb(main):003:0> "0".rjust( 2, "-", 22 )
ArgumentError: wrong number of arguments (3 for 2)
        from (irb):3:in `rjust'
        from (irb):3
irb(main):004:0>

It's expecting 2 parameters, but ignoring the padding argument and using spaces.

Does anyone else see this?

M

-- 
Matt Mower :: http://matt.blogs.it/