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


using a const makes it too easy and will accomplish what i need to do.

-a
-- 
suffering increases your inner strength.  also, the wishing for suffering
makes the suffering disappear.
- h.h. the 14th dali lama