J
Jason Lillywhite
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?
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?