Scott wrote:
> Thanks for the info.  Thats a cool feature of Ruby where you can
> redfine existing methods.

One of the most widely used features... :-)

> Mohit Muthanna wrote:
>> The open-uri module simply redefines the Kernel.open method. You can
>> do it yourself:
>> 
>> module Kernel
>>   private
>>   alias original_open open
>> 
>>   def open( blah, *blah_params, &blah_block)
>>      ...blah
>>      if some_condition
>>         original_open( blah, *blah_params, &blah_block)
>>      end
>>   end

Btw, you don't need this line:

>>   module_function :open
>> end

Kind regards

    robert