Class: Hermeneutics::Cli::ImapTools::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/hermeneutics/cli/imap.rb

Direct Known Subclasses

ResponseData, ResponseStatus, ResponseWait

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

Returns:

  • (Boolean)


166
# File 'lib/hermeneutics/cli/imap.rb', line 166

def bye?  ; false ; end

#done?Boolean

Returns:

  • (Boolean)


164
# File 'lib/hermeneutics/cli/imap.rb', line 164

def done? ; false ; end

#wait?Boolean

Returns:

  • (Boolean)


165
# File 'lib/hermeneutics/cli/imap.rb', line 165

def wait? ; false ; end