<fzakaria[m]> Is the easiest way for Java code to call JRuby code; to have the Ruby class implement a Java interface ?
<fzakaria[m]> That is just an adapter of all the methods available in Ruby
<fzakaria[m]> Ruby -> Java doesn't have as much canonical information on the JRuby wiki
<fzakaria[m]> Java -> Ruby is pretty straightforward and has documentation but
nirvdrum has quit [Ping timeout: 256 seconds]
<headius[m]> fzakaria: that's definitely the cleanest way
<headius[m]> the other options are mostly like driving a scripting engine... tell it to eval something, get a result back, tell it to eval something, etc
<headius[m]> look for the RedBridge wiki page
<headius[m]> that's our preferred embedding API
<headius[m]> beyond that you can also use javax.script or just call into org.jruby.Ruby directly (at risk of us changing some internal API)
<travis-ci> jruby/jruby (master:00f5b3b by Charles Oliver Nutter): The build was broken. https://travis-ci.org/jruby/jruby/builds/690254620 [133 min 44 sec]
travis-ci has left #jruby [#jruby]
travis-ci has joined #jruby
<headius[m]> so you have a normal javafx app currently?
<headius[m]> I am not super deep into how jrubyfx works... what is it that you think you need from it that you don't get out of just tossing scripts at JRuby?
<headius[m]> ahhh right
<headius[m]> if you just want to use parts of jrubyfx it seems like that should be possible, but I'm not sure how to do that
<headius[m]> what I know of jrubyfx is mostly starting with jrubyfx for your app from the beginning
<headius[m]> there's some examples starting that way but i'm looking to see if there's a way to just attach jrubyfx to your existing app
<headius[m]> right I agree
<headius[m]> unfortunately the main require file jrubyfx.rb calls load_dsl
<headius[m]> but that's about all it does other than loading the other sources
<headius[m]> so perhaps we can use the others directl
<headius[m]> directl
<headius[m]> hah, ok new bad key I guess
<headius[m]> thanks Apple
<headius[m]> I just mean that loading that file will want to load your fxml most likely?
<headius[m]> like it's starting up the app
<headius[m]> ok sure
<headius[m]> ok maybe it doesn't need to use fxml... that looks like a separate library
<headius[m]> jrubyfx-fxmlloader gem
<headius[m]> have you looked at some of the samples?
<headius[m]> there's a few that use the jrubyfx DSL directly
<headius[m]> looks almost like the old javafx script code
<headius[m]> domain-specific language... basically this is just a normal Ruby API but designed to look like a little language of its own
<headius[m]> in this case a language for declaring and laying out javafx components
<headius[m]> you mean like just point it at a Ruby instance variable or something?
<headius[m]> probably not... Ruby doesn't really provide a way to hook into setting an instance variable so it wouldn't know when to update or render or whatever
<headius[m]> I guess that's a benefit of the DSL... it provides a nice set of shortcuts for those things
<headius[m]> I'd say you should poke around some of the DSL examples and see if you can figure out how to use that
<headius[m]> otherwise file an issue asking about how to use this with an existing javafx application
<headius[m]> in here I know enebo works on jrubyfx (usually only around during US work hours) and byteit101 has done a ton of work on it too
<headius[m]> sorry I can't be more help but I have not played with jrubyfx at all myself
<headius[m]> good luck!
<headius[m]> ugh what is up with this failing job
nirvdrum has joined #jruby
nirvdrum has quit [Remote host closed the connection]
i8her8oat[m] has joined #jruby
ur5us has joined #jruby
ur5us has quit [Quit: Leaving]
ur5us has joined #jruby
ur5us has quit [Ping timeout: 260 seconds]
xardion has quit [Remote host closed the connection]
xardion has joined #jruby
victori has quit [Ping timeout: 260 seconds]
victori has joined #jruby