From: Florian Kaufmann Date: 2009-04-15T02:10:04+09:00 Subject: Re: Argument types > An index is always a natural number. It is required to be either a Fixnum or > Bignum. You can't pass arbitrary object to those methods. It seems that it is more complex than that. This works %w(a b c)[1.2] > Why not: >   p a[c.to_i] ? Because I'd like to understand what I can do in general with ruby. I'd like to be able to read the ruby doc and know for each of all those hundred of methods what exactly I can pass as argument. Flo