summary refs log tree commit diff
path: root/lib/bacon.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bacon.rb')
-rw-r--r--lib/bacon.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/bacon.rb b/lib/bacon.rb
index 0261c88..74d2a94 100644
--- a/lib/bacon.rb
+++ b/lib/bacon.rb
@@ -181,6 +181,14 @@ class Proc
   else
     false
   end
+
+  def throw?(sym)
+    catch(sym) {
+      call
+      return false
+    }
+    return true
+  end
 end
 
 class Float