Re: [Jruby-devel] Howto get java value from a RubyNumeric.

2006-03-22 Thread Ola Bini
Hi again. Disregard this message. I guess it's murphy that you always find the answer AFTER you've sent mail to the mailing list... /O - Original Message - From: Ola Bini <[EMAIL PROTECTED]> Date: Wednesday, March 22, 2006 4:59 pm Subject: [Jruby-devel] Howto get j

[Jruby-devel] Howto get java value from a RubyNumeric.

2006-03-22 Thread Ola Bini
Hi. This is probably a stupid question, but I need to get the value of a RubyNumeric in Java. How do I do this? I have something like this: RubyNumeric val = (RubyNumeric)io.callMethod("read",this.numOne); how do I get the java int or long or bigint from val? Regards Ola Bini -