summaryrefslogtreecommitdiff
path: root/lib/irb/workspace.rb
diff options
context:
space:
mode:
authorStan Lo <stan001212@gmail.com>2024-04-24 17:01:14 +0100
committergit <svn-admin@ruby-lang.org>2024-04-24 16:01:23 +0000
commit9bba999be7b32949b4b37dd7a871c5dc1e36c2f8 (patch)
treeaf5b29d52cb0774ca2bfdf8cc808a96daa1a0d47 /lib/irb/workspace.rb
parente5ca3d072fd1076133dc7c3a9a2e399bbfcee443 (diff)
[ruby/irb] Revert "Memoize helper method instances with Singleton module"
This reverts commit https://github.com/ruby/irb/commit/169a9a2c3097. https://github.com/ruby/irb/commit/221b0a4928
Diffstat (limited to 'lib/irb/workspace.rb')
-rw-r--r--lib/irb/workspace.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/workspace.rb b/lib/irb/workspace.rb
index d24d1cc38d..dd92d99014 100644
--- a/lib/irb/workspace.rb
+++ b/lib/irb/workspace.rb
@@ -179,7 +179,7 @@ EOF
def self.install_helper_methods
HelperMethod.helper_methods.each do |name, helper_method_class|
define_method name do |*args, **opts, &block|
- helper_method_class.instance.execute(*args, **opts, &block)
+ helper_method_class.new.execute(*args, **opts, &block)
end unless method_defined?(name)
end
end