Skip to content

Example app showing how to wire up Ruby classes with Google Guice.

Notifications You must be signed in to change notification settings

xaviershay/jruby-guice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Guice in your JRuby

Demonstrates how to wire up Ruby classes using Google Guice, including:

  • Constructor injection
  • Setter injection
  • Custom Guice module in Ruby

I wrote a blog post introducing the idea.

Getting Started

mvn package
java -jar target/jruby-guice-1.0.jar

If using an IDE, you may have to configure it to explicitly run mvn compile before running the project.

Start reading in src/main/java/net/rhnh/JrubyGuiceExample.java and src/main/ruby/SimplestApp.rb.

Why

Perhaps you are integrating Ruby into an existing Java framework. Standalone, this is a terrible idea.

About

Example app showing how to wire up Ruby classes with Google Guice.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published