From: Joel VanderWerf Date: 2009-08-15T05:32:43+09:00 Subject: Re: Array#abbrev depreciated? Jason Lillywhite wrote: > If you look at the core ruby doc, it says Array#abbrev will let you do > this: > > %w{ car cone }.abbrev #=> { "ca" => "car", "car" => "car", > "co" => "cone", "con" => cone", > "cone" => "cone" } > > But if I try this in IRB, I get: > > irb(main):002:0> %w{ car cone }.abbrev > NoMethodError: undefined method `abbrev' for ["car", "cone"]:Array > from (irb):2 > > Is Array#abbrev depreciated? require 'abbrev' # it's in the stdlib, not core -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407