Forum: JRuby Java "import static" equivelent?

Posted by Mark Mandel (Guest)
on 2013-01-16 10:09
(Received via mailing list)
I couldn't find anything, but thought I may ask the question.

Basically wondering if there is an equivalent of "import static" for 
JRuby
so you could mixin static methods and variables from a Java class into a
Ruby class.

http://docs.oracle.com/javase/1.5.0/docs/guide/lan...

Figure I could put together a little gem + some meta programming to do 
this
without too much trouble, but figured it was worth asking in case JRuby 
had
it already built into the language.

Thanks!

Mark

--
E: mark.mandel@gmail.com
T: http://www.twitter.com/neurotic
W: www.compoundtheory.com

2 Devs from Down Under Podcast
http://www.2ddu.com/
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.