diff options
author | Stan Lo <stan001212@gmail.com> | 2024-04-24 17:01:14 +0100 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2024-04-24 16:01:23 +0000 |
commit | 9bba999be7b32949b4b37dd7a871c5dc1e36c2f8 (patch) | |
tree | af5b29d52cb0774ca2bfdf8cc808a96daa1a0d47 /lib/irb/workspace.rb | |
parent | e5ca3d072fd1076133dc7c3a9a2e399bbfcee443 (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.rb | 2 |
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 |