November 2009
1 post
Snarl - A JavaScript Bridge for JRuby
If you would like to use JavaScript directly from Ruby, check out Snarl. I just pushed its first public release to Gemcutter. Snarl is JRuby-only, as it uses Mozilla’s Rhino JavaScript engine to do its work.
First, make sure you’re using Gemcutter:
gem install gemcutter gem tumble
Then, install and use:
gem install snarl irb > context = Snarl::JavascriptContext.new >...