From 4c3b5b0d20df18dfb914d0732ba96c0617a51c57 Mon Sep 17 00:00:00 2001 From: William Morgan Date: Wed, 9 Sep 2009 10:06:38 -0400 Subject: [PATCH] bugfix: console mode can't start a message in #initialize Now that it's a regular buffer, it must act like one. I've moved the message to #run, where it kinda makes more sense. Also tweaked a few things. --- lib/sup/modes/console-mode.rb | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/lib/sup/modes/console-mode.rb b/lib/sup/modes/console-mode.rb index e2a69d9..f0c626e 100644 --- a/lib/sup/modes/console-mode.rb +++ b/lib/sup/modes/console-mode.rb @@ -21,6 +21,7 @@ class Console def xapian; Index.instance.instance_variable_get :@xapian; end def ferret; Index.instance.instance_variable_get :@index; end + def special_methods; methods - Object.methods end ## files that won't cause problems when reloaded ## TODO expand this list / convert to blacklist @@ -67,12 +68,6 @@ class ConsoleMode < LogMode super @console = Console.new self @binding = @console.instance_eval { binding } - self << <> " end def run + self << <