Skip to content

Commit 0006591

Browse files
committed
Reapply "Merge pull request #52 from ruby/revert-49"
This reverts commit 02e4b58b615d0dd83a6af5cd7c2b8861724011ee.
1 parent 2fcad96 commit 0006591

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

lib/delegate.rb

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -345,16 +345,10 @@ def __setobj__(obj)
345345
end
346346

347347
def Delegator.delegating_block(mid) # :nodoc:
348-
prok = lambda do |*args, &block|
348+
lambda do |*args, &block|
349349
target = self.__getobj__
350350
target.__send__(mid, *args, &block)
351-
end
352-
prok.ruby2_keywords
353-
if defined?(Ractor.shareable_proc)
354-
Ractor.shareable_proc(&prok)
355-
else
356-
prok
357-
end
351+
end.ruby2_keywords
358352
end
359353

360354
#

0 commit comments

Comments
 (0)