module AyeCommander::Abortable::ClassMethods
Abortable
just comes with a class method that is basically a wrapper for catch and throw.
Public Instance Methods
abortable() { || ... }
click to toggle source
.abortable receives a block and yields it inside a catch so that abort! can be safely called.
# File lib/aye_commander/abortable.rb, line 15 def abortable catch(:abort!) { yield } end