(2012/10/28 6:45), Eregon (Benoit Daloze) wrote:
>> > class Fixnum; def fib; @fib ||= (self-1).fib + (self-2).fib; end; end; [0,1].each { |i| i.instance_eval { @fib = i } }
> => [0, 1]
>> > 42.fib
> => 267914296
> 
> This is fun but evil ...

I completely agree with that.  I've forgot such pleasure!!

-- 
// SASADA Koichi at atdot dot net