module QLab
Constants
- VERSION
Public Class Methods
connect(machine_address='localhost', port=53000)
click to toggle source
# File lib/qlab-ruby.rb, line 14 def connect machine_address='localhost', port=53000 begin # global QLab connection new_machine = Machine.new(machine_address, port) rescue Errno::ECONNREFUSED puts "Failed to connect to QLab machine at #{machine_address}:#{port}, please make sure your values are correct and QLab is running." raise end if new_machine.connected? new_machine.alwaysReply = 1 end new_machine end
debug(msg)
click to toggle source
# File lib/qlab-ruby.rb, line 30 def debug msg # puts msg end