Method: Cond.with_default_handlers
- Defined in:
- lib/cond/cond.rb
.with_default_handlers ⇒ Object
A default handler is provided which runs a simple choose-a-restart input loop when raise is called.
48 49 50 51 52 53 |
# File 'lib/cond/cond.rb', line 48 def with_default_handlers # note: leave unfactored due to notable yield vs &block performance with_handlers(defaults.handlers) { yield } end |