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 | dad2382270b8bcfc56a0e2dd73c6201e63ed1a7c (patch) | |
tree | 33b0fdf571109ead0c9bd8d3e90cbd74e8082572 /lib/net/smtp.rb | |
parent | bfcb3fb3be96b8759db9ee441141e373626d782c (diff) |
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) |