Module: Hobbit::ErrorHandling::ClassMethods
- Defined in:
- lib/hobbit/error_handling.rb
Instance Method Summary collapse
Instance Method Details
#error(exception, &block) ⇒ Object
4 5 6 |
# File 'lib/hobbit/error_handling.rb', line 4 def error(exception, &block) errors[exception] = block end |
#errors ⇒ Object
8 9 10 |
# File 'lib/hobbit/error_handling.rb', line 8 def errors @errors ||= Hash.new end |