Module: Test::Unit::ExceptionHandler::ClassMethods
- Defined in:
- lib/test/unit/exceptionhandler.rb
Instance Method Summary collapse
- #exception_handler(*method_names) ⇒ Object
- #exception_handlers ⇒ Object
- #unregister_exception_handler(*method_names) ⇒ Object
Instance Method Details
#exception_handler(*method_names) ⇒ Object
29 30 31 |
# File 'lib/test/unit/exceptionhandler.rb', line 29 def exception_handler(*method_names) attribute(:exception_handler, true, *method_names) end |
#exception_handlers ⇒ Object
25 26 27 |
# File 'lib/test/unit/exceptionhandler.rb', line 25 def exception_handlers ExceptionHandler.exception_handlers end |
#unregister_exception_handler(*method_names) ⇒ Object
33 34 35 |
# File 'lib/test/unit/exceptionhandler.rb', line 33 def unregister_exception_handler(*method_names) attribute(:exception_handler, false, *method_names) end |