Code examples for using Rhino from jRuby
Ruby
Switch branches/tags
Nothing to show
Pull request Compare This branch is 1 commit ahead of biilmann:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
example-1.rb
example-2.rb
example-3.rb

README.md

Integrating JRruby and Rhino

These are 3 examples of how to use and control the Rhino javascript implementation from JRuby.

  1. Executing javascript from JRuby
  2. Controlling execution time and instruction count of a javascript
  3. Exposing JRuby methods to javascript

To run these install the Rhino maven artifact as a gem from JRuby: jruby -S gem install mvn:rhino:js

Then you any script as if it was any other Ruby script!