Class: NXTAsync
Instance Attribute Summary
Attributes inherited from NXT
#communication, #device_path, #wait_for_reply
Instance Method Summary collapse
- #async ⇒ Object
-
#initialize(device_path, communication = nil) ⇒ NXTAsync
constructor
A new instance of NXTAsync.
Methods inherited from NXT
#connect, #disconnect, #get_battery_level, #get_current_program_name, #get_device_info, #play_sound_file, #play_tone, #reset_motor_position, #send_message, #set_input_mode, #set_output_state, #start_program, #stop_program, #stop_sound_playback
Constructor Details
#initialize(device_path, communication = nil) ⇒ NXTAsync
Returns a new instance of NXTAsync.
111 112 113 114 |
# File 'lib/nxt.rb', line 111 def initialize(device_path, communication=nil) super(device_path, communication) @wait_for_reply = false end |
Instance Method Details
#async ⇒ Object
116 117 118 |
# File 'lib/nxt.rb', line 116 def async self end |