From: Joel VanderWerf Date: 2007-10-12T13:37:36+09:00 Subject: Re: range max ara.t.howard wrote: > class Lang < String > class ::NilClass > def succ() Lang('perl') end > end > > def succ > Lang( > case self > when /perl/i then 'python' > when /python/i then 'ruby' > else super > end > ) > end ... > end > def Lang(*a, &b) Lang.new(*a, &b) end nil.succ.succ.succ.succ => "rubz" Is this the new name for ruby 2.0, instead of rite? Well, I have to say it kinda rubz off on you after a while. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407