title: JRuby and Java objects
body: <p>Please tell me if it is possible to do the following:</p>
  
  <ul>
  <li>create an instance of a specific class in Java</li>
  <li>pass it to JRuby to do something with it</li>
  <li>continue using the "modified" version in Java</li>
  </ul>
  
  <p>May you provide a small working example?</p>
  
  <p>EDIT: It turns out that embedding was the simplest way to achieve this. More information is available on <a href="http://github.com/jruby/jruby/wiki/RedBridge" rel="nofollow noreferrer">Embedding JRuby</a>.</p>