Method: CMUX::ModemCommand#initialize
- Defined in:
- lib/cmux/modem_command.rb
#initialize(command, chatter, timeout, &block) ⇒ ModemCommand
Returns a new instance of ModemCommand.
5 6 7 8 9 10 11 12 |
# File 'lib/cmux/modem_command.rb', line 5 def initialize(command, chatter, timeout, &block) @command = command @chatter = chatter @timeout = timeout @issued_at = DateTime.now.to_time @block = block @state = :queued end |