From: William Morgan Date: Wed, 9 Sep 2009 14:06:38 +0000 (-0400) Subject: bugfix: console mode can't start a message in #initialize X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=4c3b5b0d20df18dfb914d0732ba96c0617a51c57;hp=b119447d2198667e25bad72566581f1f70021417;p=sup 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. --- 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 << <