diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-14 07:53:32 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-14 07:53:32 +0000 |
commit | 0682ee4755378fc1756878d43b9011d1a54c7f00 (patch) | |
tree | 33b0fdf571109ead0c9bd8d3e90cbd74e8082572 /lib/net/smtp.rb | |
parent | 405cef5befb4517567e0c9a97839dbc94b7f42bf (diff) | |
download | ruby-0682ee4755378fc1756878d43b9011d1a54c7f00.tar.gz |
net/protocol.rb: kwargs
* lib/net/protocol.rb (Net::BufferedIO#initialize): add keyword
arguments for initial attributes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/smtp.rb')
-rw-r--r-- | lib/net/smtp.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb index ac8ddc5bf2..359a0f9710 100644 --- a/lib/net/smtp.rb +++ b/lib/net/smtp.rb @@ -592,10 +592,8 @@ module Net end def new_internet_message_io(s) - io = InternetMessageIO.new(s) - io.read_timeout = @read_timeout - io.debug_output = @debug_output - io + InternetMessageIO.new(s, read_timeout: @read_timeout, + debug_output: @debug_output) end def do_helo(helo_domain) |