Evaluate the contents of the file inline in the current thread like a function.

eval_file  filename (path)

Reads the full contents of the file with path and executes within the current thread like a function call.

Introduced in v3.2

Example

# Example 1

eval_file "~/path/to/sonic-pi-code.rb"



#=> will run the contents of this file