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/protocol.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/protocol.rb')
-rw-r--r-- | lib/net/protocol.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb index 6b75b94cda..ca7ef6b8e5 100644 --- a/lib/net/protocol.rb +++ b/lib/net/protocol.rb @@ -79,11 +79,11 @@ module Net # :nodoc: class BufferedIO #:nodoc: internal use only - def initialize(io) + def initialize(io, read_timeout: 60, continue_timeout: nil, debug_output: nil) @io = io - @read_timeout = 60 - @continue_timeout = nil - @debug_output = nil + @read_timeout = read_timeout + @continue_timeout = continue_timeout + @debug_output = debug_output @rbuf = '' end @@ -254,7 +254,7 @@ module Net # :nodoc: class InternetMessageIO < BufferedIO #:nodoc: internal use only - def initialize(io) + def initialize(*) super @wbuf = nil end |