Class: Hermeneutics::Cli::ImapTools::ResponseWait

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Response

#bye?, #done?

Constructor Details

#initialize(text) ⇒ ResponseWait

Returns a new instance of ResponseWait.



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

def initialize text ; @text = text ; end

Instance Attribute Details

#textObject (readonly)

Returns the value of attribute text.



175
176
177
# File 'lib/hermeneutics/cli/imap.rb', line 175

def text
  @text
end

Class Method Details

.create(reader) ⇒ Object



171
172
173
# File 'lib/hermeneutics/cli/imap.rb', line 171

def create reader
  new reader.readline
end

Instance Method Details

#to_sObject



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

def to_s ; "#{text}" ; end

#wait?Boolean

Returns:

  • (Boolean)


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

def wait? ; true  ; end