diff options
| author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-23 00:05:58 +0000 |
|---|---|---|
| committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-23 00:05:58 +0000 |
| commit | 9b97c2435c1d6fdbcdfab104cb1ac3359d40dff2 (patch) | |
| tree | 773c3972b4595cdc897f898be39b9871cb37e94a /lib | |
| parent | ece237c27e3c0287303e1fed95c4c5756604242b (diff) | |
| download | ruby-9b97c2435c1d6fdbcdfab104cb1ac3359d40dff2.tar.gz ruby-9b97c2435c1d6fdbcdfab104cb1ac3359d40dff2.tar.xz ruby-9b97c2435c1d6fdbcdfab104cb1ac3359d40dff2.zip | |
* lib/net/imap.rb (disconnected?): new method. (backported from HEAD)
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/net/imap.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/net/imap.rb b/lib/net/imap.rb index 7e8d574fb..705d54b0c 100644 --- a/lib/net/imap.rb +++ b/lib/net/imap.rb @@ -289,6 +289,11 @@ module Net @sock.close end + # Returns true if disconnected from the server. + def disconnected? + return @sock.closed? + end + # Sends a CAPABILITY command, and returns an array of # capabilities that the server supports. Each capability # is a string. See [IMAP] for a list of possible |
