Check syntax of ruby file

ruby -c filename.rb