mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use bind_call
instead of bind
and call
This commit is contained in:
parent
ddfb306e8e
commit
d6c80876b7
2 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue