Class: SonicPi
- Inherits:
-
Object
- Object
- SonicPi
- Defined in:
- lib/sonic_pi.rb
Constant Summary collapse
- RUN_COMMAND =
"/run-code"- STOP_COMMAND =
"/stop-all-jobs"- SERVER =
'localhost'- PORT =
4557- GUI_ID =
'SONIC_PI_CLI'
Instance Method Summary collapse
Instance Method Details
#run(command) ⇒ Object
13 14 15 |
# File 'lib/sonic_pi.rb', line 13 def run(command) client.send(run_command(command)) end |
#stop ⇒ Object
17 18 19 |
# File 'lib/sonic_pi.rb', line 17 def stop client.send(stop_command) end |