Use bind_call
instead of bind
and call
This commit is contained in:
parent
ddfb306e8e
commit
d6c80876b7
@ -336,7 +336,7 @@ module URI
|
||||
|
||||
@@to_s = Kernel.instance_method(:to_s)
|
||||
def inspect
|
||||
@@to_s.bind(self).call
|
||||
@@to_s.bind_call(self)
|
||||
end
|
||||
|
||||
private
|
||||
|
@ -91,7 +91,7 @@ module URI
|
||||
|
||||
@@to_s = Kernel.instance_method(:to_s)
|
||||
def inspect
|
||||
@@to_s.bind(self).call
|
||||
@@to_s.bind_call(self)
|
||||
end
|
||||
|
||||
private
|
||||
|
Loading…
x
Reference in New Issue
Block a user