We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fcad96 commit 0006591Copy full SHA for 0006591
1 file changed
lib/delegate.rb
@@ -345,16 +345,10 @@ def __setobj__(obj)
345
end
346
347
def Delegator.delegating_block(mid) # :nodoc:
348
- prok = lambda do |*args, &block|
+ lambda do |*args, &block|
349
target = self.__getobj__
350
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.ruby2_keywords
358
359
360
#
0 commit comments