Updated with a good 'compile' function for ruby mode.