diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-17 07:54:52 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-17 07:54:52 +0000 |
commit | 131dc83145fb72da00af94490e630b0339513fb2 (patch) | |
tree | 85715157b18830c9e811431f98a34684e692dd2a /ext/socket/lib | |
parent | a4f2606b2d9297f5978e8a935c7b7a8e22215c49 (diff) | |
download | ruby-131dc83145fb72da00af94490e630b0339513fb2.tar.gz |
socket.rb: protected connect_internal
* ext/socket/lib/socket.rb (Addrinfo#connect_internal): make
protected for Addrinfo#connect_to, instead of private and send.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/lib')
-rw-r--r-- | ext/socket/lib/socket.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/socket/lib/socket.rb b/ext/socket/lib/socket.rb index 18f79b3f08..4ed2df23e6 100644 --- a/ext/socket/lib/socket.rb +++ b/ext/socket/lib/socket.rb @@ -77,7 +77,7 @@ class Addrinfo sock end end - private :connect_internal + protected :connect_internal # :call-seq: # addrinfo.connect_from([local_addr_args], [opts]) {|socket| ... } @@ -158,7 +158,7 @@ class Addrinfo # def connect_to(*args, timeout: nil, &block) remote_addrinfo = family_addrinfo(*args) - remote_addrinfo.send(:connect_internal, self, timeout, &block) + remote_addrinfo.connect_internal(self, timeout, &block) end # creates a socket bound to self. |