From: Robert Dober Date: 2006-07-14T23:11:16+09:00 Subject: Re: challenge ------=_Part_23750_20271499.1152886273630 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline [SOLUTION] ;) OPEN =File.method 'open' class File def self.open(*a) 42 end end class File class << self def open(*args,&block) OPEN.call(*args, &block) end end end x=File.open(__FILE__){ |f| puts f.read } Please do not flame me I am aware of the shortcomings( at least I hope so), but I just did not get the Metaprogramming to work, it would be good to know why! Cheers Robert ------=_Part_23750_20271499.1152886273630--