Class: Hermeneutics::Cli::ImapTools::Command
- Inherits:
-
Object
- Object
- Hermeneutics::Cli::ImapTools::Command
- Defined in:
- lib/hermeneutics/cli/imap/commands.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#responses ⇒ Object
readonly
Returns the value of attribute responses.
Instance Method Summary collapse
- #add_response(resp) ⇒ Object
-
#initialize ⇒ Command
constructor
A new instance of Command.
- #stream_lines(r, &block) ⇒ Object
Constructor Details
#initialize ⇒ Command
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
#responses ⇒ Object (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 |