"HarryO" <harryo / zipworld.com.au> writes:

> Is there some way I can add an alias to allow me to do that?  I
> tried doing something like, but I get an error telling me there's no
> method called "original".  Obviously, this is just a test to see
> whether it's doable before I write the real code :-).

Try this:

     class File
       class <<self
         alias original open
       end

       def File.open(*args)
         puts "Whooppee!!"
         ret = File.original(*args)
         puts "Back..."
         ret
       end
     end


Regards


Dave