From: transfire@... Date: 2006-07-14T10:23:57+09:00 Subject: Re: challenge ara.t.howard@noaa.gov wrote: > On Fri, 14 Jul 2006 Ara.T.Howard@noaa.gov wrote: > > > > > OPEN = File.method 'open' > > > > class File > > def self.open(*a) 42 end > > end > > end > > > > > > ## now restore File.open using OPEN - remember that open takes a block... > > correction. start here > > open_m = File.method 'open' > > class File > def self.open(*a) 42 end > end > end > (class << File; self; end).instance_eval { define_method(:open,&open_m) } ? T.