1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

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

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