"Dat Nguyen" <thucdat / hotmail.com> writes:

> irb(main):003:0> word(0)
> NameError: undefined method `word' for #<Object:0x40183ed4>
> (irb):3:in `irb_binding'
> irb(main):004:0>

That should be word[0]. Square brackets are for indexing, and round
parentheses (in this context) indicate the parameter list for a method 
call.

Regards


Dave