Extend an instance of Object instead of creating a new class …

This commit is contained in:
Rob Gleeson 2011-05-06 18:33:28 +01:00
parent 1ee8af8040
commit c49f9e3aba
1 changed files with 1 additions and 3 deletions

View File

@ -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