Extend an instance of Object instead of creating a new class …
This commit is contained in:
parent
1ee8af8040
commit
c49f9e3aba
|
@ -24,9 +24,7 @@ class Pry
|
||||||
end
|
end
|
||||||
|
|
||||||
def text
|
def text
|
||||||
@text ||= Class.new do
|
@text ||= Object.new.extend Pry::Helpers::Text
|
||||||
extend Pry::Helpers::Text
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
include Pry::Helpers::BaseHelpers
|
include Pry::Helpers::BaseHelpers
|
||||||
|
|
Loading…
Reference in New Issue