From: Robin Stocker Date: 2006-06-18T08:31:56+09:00 Subject: Re: Newbie question about arrays. Gautam Dey wrote: > So I was going through the Ruby array documentation and came across > Array. abbrev(pattern = nil). However, every time I run the example code > in irb I get the following: > > rb(main):001:0> %w{ car cone }.abbrev > NoMethodError: undefined method `abbrev' for ["car", "cone"]:Array > from (irb):1 > irb(main):002:0> > > > What am I doing wrong? Do I need to include a module? If so, how? Yes, you need to do require 'abbrev'. It should be mentioned in the documentation, but it is not. I think Gavin Sinclair is the one to contact in this case, so this mail is CC to him. Gavin, could you add a note to lib/abbrev.rb, something like: You need to require the abbrev module in order to use this functionality. Thanks, Robin