Ruby 2 JavaScript
CoffeeScript
CoffeeScript is a programming language that transcompiles to JavaScript. It adds syntactic sugar inspired by Ruby, Python and Haskell in an effort to enhance JavaScript's brevity and readability.
Quick CoffeeScript Review
Here a quick how to if CoffeeScript in general
Install CoffeScript lib
For live conversion
Ruby CoffeScript gem
Ruby CoffeeScript gem is a bridge to the official CoffeeScript compiler.
Install CoffeeScript gem
Convert CoffeeScript file to JavaScript
Run it
Opal
Opal is a Ruby to JavaScript source-to-source compiler. It also has an implementation of the Ruby corelib.
Install Opal gem
[5]: http://js2.coffee/
Last updated