------art_23750_20271499.1152886273630
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

[SOLUTION] ;)

  OPEN e.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



  xe.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

------art_23750_20271499.1152886273630--