RubyScript lets you write JavaScript code, in Ruby! It will convert Ruby code into JavaScript code for use on the web and elsewhere
James Birtles
gem "rubyscript", "~> 0.0.5"