diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-12-18 14:17:23 +0900 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-12-18 16:46:29 +0900 |
| commit | 000659140786f1c74075b1b91ce03897cf525181 (patch) | |
| tree | e10289f87a22455316873b962191f06c9cdd2395 /lib | |
| parent | 2fcad967aab5aae921b2288c8080096d79ddb8dd (diff) | |
Reapply "Merge pull request #52 from ruby/revert-49"
This reverts commit 02e4b58b615d0dd83a6af5cd7c2b8861724011ee.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/delegate.rb | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/delegate.rb b/lib/delegate.rb index c2fe827800..ba53cc9bb7 100644 --- a/lib/delegate.rb +++ b/lib/delegate.rb @@ -345,16 +345,10 @@ class SimpleDelegator < Delegator end def Delegator.delegating_block(mid) # :nodoc: - prok = lambda do |*args, &block| + lambda do |*args, &block| target = self.__getobj__ target.__send__(mid, *args, &block) - end - prok.ruby2_keywords - if defined?(Ractor.shareable_proc) - Ractor.shareable_proc(&prok) - else - prok - end + end.ruby2_keywords end # |
