From c49f9e3aba8cb3d27233aa911de4d2c50b06f877 Mon Sep 17 00:00:00 2001 From: Rob Gleeson Date: Fri, 6 May 2011 18:33:28 +0100 Subject: [PATCH] =?UTF-8?q?Extend=20an=20instance=20of=20Object=20instead?= =?UTF-8?q?=20of=20creating=20a=20new=20class=20=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pry/command_context.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/pry/command_context.rb b/lib/pry/command_context.rb index d671e257..d5ff0f7d 100644 --- a/lib/pry/command_context.rb +++ b/lib/pry/command_context.rb @@ -24,9 +24,7 @@ class Pry end def text - @text ||= Class.new do - extend Pry::Helpers::Text - end + @text ||= Object.new.extend Pry::Helpers::Text end include Pry::Helpers::BaseHelpers