Class: EventMachine::IMAP::Command
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#cmd ⇒ Object
Returns the value of attribute cmd.
-
#tag ⇒ Object
Returns the value of attribute tag.
Instance Method Summary collapse
-
#initialize(tag, cmd, args = [], &block) ⇒ Command
constructor
A new instance of Command.
Methods inherited from Listener
Methods included from ListeningDeferrable
#listen, #receive_event, #stop, #stopback, #transform
Constructor Details
#initialize(tag, cmd, args = [], &block) ⇒ Command
Returns a new instance of Command.
38 39 40 41 42 43 |
# File 'lib/em-imap.rb', line 38 def initialize(tag, cmd, args=[], &block) super(&block) self.tag = tag self.cmd = cmd self.args = args end |
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
37 38 39 |
# File 'lib/em-imap.rb', line 37 def args @args end |
#cmd ⇒ Object
Returns the value of attribute cmd.
37 38 39 |
# File 'lib/em-imap.rb', line 37 def cmd @cmd end |
#tag ⇒ Object
Returns the value of attribute tag.
37 38 39 |
# File 'lib/em-imap.rb', line 37 def tag @tag end |