Example of a JRuby extension written in Java
Java Ruby
Latest commit 37753e3 Aug 18, 2012 @tychobrailleur Add rspec examples.
Running rspec examples with maven relies on a fix being pulled into
rspec-maven-plugin (torquebox/jruby-maven-plugins#31)
to work, as this plugin currently fails with rspec 2.11.0.
Permalink
Failed to load latest commit information.
spec Add rspec examples. Aug 18, 2012
src/main
.gitignore Initial commit Aug 17, 2012
README.md Add rspec examples. Aug 18, 2012
pom.xml Add rspec examples. Aug 18, 2012
test.rb

README.md

Example of a JRuby extension in Java.

Build

$ mvn package

Execution

$ jruby test.rb

This script prints out the 10 first terms of the Fibonacci sequence. To use the JRuby extension:

require 'fibonacci'

seq = Com::Weblogism::Myjrubyext::Fibonacci.new
puts seq.fib(8)