Class: Hermeneutics::Cli::ImapTools::Response
- Inherits:
-
Object
- Object
- Hermeneutics::Cli::ImapTools::Response
show all
- Defined in:
- lib/hermeneutics/cli/imap.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.create(tag, reader) ⇒ Object
143
144
145
146
147
148
149
150
151
152
153
|
# File 'lib/hermeneutics/cli/imap.rb', line 143
def create tag, reader
p = reader.peekline
p and p.slice! /\A(\S+) +/ or return
case $1
when tag then ResponseFinish.create reader
when "+" then ResponseWait. create reader
when "*" then ResponseStatus.create reader or
ResponseData. create reader
else raise UnspecResponse, reader.readline
end
end
|
Instance Method Details
#bye? ⇒ Boolean
166
|
# File 'lib/hermeneutics/cli/imap.rb', line 166
def bye? ; false ; end
|
#done? ⇒ Boolean
164
|
# File 'lib/hermeneutics/cli/imap.rb', line 164
def done? ; false ; end
|
#wait? ⇒ Boolean
165
|
# File 'lib/hermeneutics/cli/imap.rb', line 165
def wait? ; false ; end
|