Method: CMUX::ModemChatter#command
- Defined in:
- lib/cmux/modem_chatter.rb
#command(command, timeout = nil, &block) ⇒ Object
19 20 21 22 23 24 25 26 27 |
# File 'lib/cmux/modem_chatter.rb', line 19 def command(command, timeout = nil, &block) submit_now = @command_queue.empty? cmd = ModemCommand.new(command, self, timeout, &block) @command_queue.push cmd submit if submit_now cmd end |