diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-21 06:45:33 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-21 06:45:33 +0000 |
commit | 0d5a81f497653d5ab5ea75591e900a951a825d81 (patch) | |
tree | 688f3b8c5d84f13b899ad71de88c0cba989f7251 /lib | |
parent | a29dc5676415163b0e2416a07de4a9d8055a4670 (diff) | |
download | ruby-0d5a81f497653d5ab5ea75591e900a951a825d81.tar.gz |
* lib/net/telnet.rb (Net::Telnet#close): added.
patched by Erik Hollensbe [ruby-dev:42260] #3830
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net/telnet.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/net/telnet.rb b/lib/net/telnet.rb index f233827a59..a8ded93b9d 100644 --- a/lib/net/telnet.rb +++ b/lib/net/telnet.rb @@ -754,6 +754,10 @@ module Net line end + def close + @sock.close + end + end # class Telnet end # module Net |