raises an ArgumentError when calling #call

based on a patch from @ksss; close #2070
parent af5a32f4
class Symbol class Symbol
def to_proc def to_proc
Proc.new do |obj, *args| ->(obj,*args) do
obj.send(self, *args) obj.send(self, *args)
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment