Class: Hermeneutics::Cli::ImapTools::Command

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

Direct Known Subclasses

CommandGeneric, CommandNamed

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCommand

Returns a new instance of Command.



21
22
23
# File 'lib/hermeneutics/cli/imap/commands.rb', line 21

def initialize
  @responses = []
end

Instance Attribute Details

#responsesObject (readonly)

Returns the value of attribute responses.



19
20
21
# File 'lib/hermeneutics/cli/imap/commands.rb', line 19

def responses
  @responses
end

Instance Method Details

#add_response(resp) ⇒ Object



29
30
31
# File 'lib/hermeneutics/cli/imap/commands.rb', line 29

def add_response resp
  @responses.push resp
end

#stream_lines(r, &block) ⇒ Object



25
26
27
# File 'lib/hermeneutics/cli/imap/commands.rb', line 25

def stream_lines r, &block
  mkdata.stream_lines r, &block
end