Skip to content

Instantly share code, notes, and snippets.

@yokolet
Created February 25, 2010 22:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yokolet/315114 to your computer and use it in GitHub Desktop.
Save yokolet/315114 to your computer and use it in GitHub Desktop.
irb(main):001:0> require 'java'
=> true
irb(main):002:0> c = org.jruby.embed.ScriptingContainer.new
=> org.jruby.embed.ScriptingContainer@4e0a2a38
irb(main):003:0> c.run_scriptlet("require 'rubygems'")
=> true
irb(main):004:0> c.run_scriptlet("require 'active_support'")
=> true
irb(main):005:0>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment