Memories for code, music and life.

Ruby Compiled Code

How to run Ruby compiled code on Rubinius

Step 1: Write the code

puts'Hola Rbx'

Step 2: Compile the file(s)

rbx compile script/my_script.rb -o script-compiled/my_script.rbc

Step 3: Make a difference between source and compiled version

The main difference is the directory. The script directory is the source version and the script-compiled is the compiled version.
My reason to do that, is because the commands to require the code are different.