Class: TestR::Client::Transceiver
- Defined in:
- lib/testr/client.rb
Instance Method Summary collapse
-
#initialize(*popen_args) ⇒ Transceiver
constructor
A new instance of Transceiver.
- #send(command) ⇒ Object
Methods inherited from Receiver
Constructor Details
#initialize(*popen_args) ⇒ Transceiver
Returns a new instance of Transceiver.
19 20 21 22 23 |
# File 'lib/testr/client.rb', line 19 def initialize *popen_args @io_write_lock = Mutex.new popen_args[1] = 'w+' super end |
Instance Method Details
#send(command) ⇒ Object
25 26 27 28 29 30 |
# File 'lib/testr/client.rb', line 25 def send command @io_write_lock.synchronize do warn "#{caller[2]} SEND #{command.inspect}" if $DEBUG @io.puts JSON.dump(command) end end |