I wondered  whether the  clause rescue would  accept any  modules, not
just exception classes.  Well, at least in MRI 1.8.7, it does (example
appended).  But will this work in all Ruby implementations?

Regards,

Jeremy Henty

Example (prints "Rescued!")

    module MyModule
    end

    class MyException < StandardError
      include MyModule
    end

    begin
      raise MyException
    rescue MyModule
      puts 'Rescued!'
    end