Module: TryTo
- Defined in:
- lib/try_to.rb
Class Attribute Summary collapse
-
.default_handler ⇒ Object
Returns the value of attribute default_handler.
-
.exceptions ⇒ Object
Returns the value of attribute exceptions.
-
.handlers ⇒ Object
Returns the value of attribute handlers.
Class Method Summary collapse
Class Attribute Details
.default_handler ⇒ Object
Returns the value of attribute default_handler.
3 4 5 |
# File 'lib/try_to.rb', line 3 def default_handler @default_handler end |
.exceptions ⇒ Object
Returns the value of attribute exceptions.
3 4 5 |
# File 'lib/try_to.rb', line 3 def exceptions @exceptions end |
.handlers ⇒ Object
Returns the value of attribute handlers.
3 4 5 |
# File 'lib/try_to.rb', line 3 def handlers @handlers end |
Class Method Details
.add_handler(exception, handler) ⇒ Object
7 8 9 |
# File 'lib/try_to.rb', line 7 def self.add_handler(exception, handler) self.handlers.merge!(exception => handler) end |