From 2334f8a1146b1bd478507682ef152c83cd54789e Mon Sep 17 00:00:00 2001 From: wmorgan Date: Mon, 20 Aug 2007 01:35:58 +0000 Subject: [PATCH] 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 --- lib/sup/hook.rb | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.45.2