run_file filename (path)
Reads the full contents of the file with path and executes it in a new Run. This works as if the code in the file was in a buffer and Run button was pressed.
path
Introduced in v2.11
run_file "~/path/to/sonic-pi-code.rb"
#=> will run the contents of this file