From: wmorgan Date: Mon, 20 Aug 2007 01:35:58 +0000 (+0000) Subject: add ask_yes_or_no to hook callable functions X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=2334f8a1146b1bd478507682ef152c83cd54789e;p=sup add ask_yes_or_no to hook callable functions git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@533 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- diff --git a/lib/sup/hook.rb b/lib/sup/hook.rb index 3b7cf16..47be116 100644 --- a/lib/sup/hook.rb +++ b/lib/sup/hook.rb @@ -30,6 +30,10 @@ class HookManager Redwood::log "hook[#@__name]: #{s}" end + def ask_yes_or_no q + BufferManager.ask_yes_or_no q + end + def __binding binding end