Merge pull request #6395 from dearblue/to_proc

This commit is contained in:
Yukihiro "Matz" Matsumoto
2024-10-27 21:14:48 +09:00
committed by GitHub
+2 -1
View File
@@ -1,7 +1,8 @@
class Symbol
def to_proc
mid = self
->(obj,*args,**opts,&block) do
obj.__send__(self, *args, **opts, &block)
obj.__send__(mid, *args, **opts, &block)
end
end
end