diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-14 07:59:50 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-14 07:59:50 +0000 |
commit | 56d2552243a9e01c65dc3d8c0b2523b15de6100c (patch) | |
tree | 12d5584d45e7b7b73ce28978545ec91ce8fcee9e /lib/net | |
parent | 0682ee4755378fc1756878d43b9011d1a54c7f00 (diff) | |
download | ruby-56d2552243a9e01c65dc3d8c0b2523b15de6100c.tar.gz |
net/ftp.rb: kwargs
* lib/net/ftp.rb (Net::FTP#open_socket): use keyword argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net')
-rw-r--r-- | lib/net/ftp.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb index 24895e3fe8..baa163d04d 100644 --- a/lib/net/ftp.rb +++ b/lib/net/ftp.rb @@ -242,9 +242,7 @@ module Net else sock = TCPSocket.open(host, port) end - io = BufferedSocket.new(sock) - io.read_timeout = @read_timeout - io + BufferedSocket.new(sock, read_timeout: @read_timeout) } end private :open_socket |