lib/jx/js.rb
def ruby2java(args)

      args.map do |arg|
        case arg
        when TrueClass, FalseClass, Numeric, String, NilClass, Callback, Sol::IRBObject
          arg.to_java
        when com.teamdev.jxbrowser.chromium.JSObject
          arg.to_java
        when Sol::JSObject
          arg.jsvalue.to_java
        when java.lang.Number
          arg
        when Proc
          blk2func(arg).jsvalue.to_java
        when Symbol
          raise "Ruby Symbols are not supported in jxBrowser.  Converting ':#{arg}' not supported."
        when Object
          pack(arg).to_java
        else
          raise "This is not a proper argument #{arg}.  Did you use 'proxy' or 'pack'?"
        end
      end
      
    end
#------------------------------------------------------------------------------------
# Converts Ruby arguments into a java objects so that they can be used as parameters
# to a java function call.
# An
# IRBObject (Internal Ruby Object) appears when a Ruby Callback is executed and
# exists for the case that this object transitions between javascript and ends up
# in a Ruby script.
# @param args [Array] Ruby array with ruby arguments
# @return args [Array] Ruby array with ruby arguments converted to java arguments
#------------------------------------------------------------------------------------
Converts Ruby arguments into a java objects so that they can be used as parameters
to a java function call.
An
IRBObject (Internal Ruby Object) appears when a Ruby Callback is executed and
exists for the case that this object transitions between javascript and ends up
in a Ruby script.
Converts Ruby arguments into a java objects so that they can be used as parameters to a java function call . An IRBObject ( Internal Ruby Object ) appears when a Ruby Callback is executed and exists for the case that this object transitions between javascript and ends up in a Ruby script .
def ruby2java(args)
      args.map do |arg|
        case arg
        when TrueClass, FalseClass, Numeric, String, NilClass, Callback, Sol::IRBObject
          arg.to_java
        when com.teamdev.jxbrowser.chromium.JSObject
          arg.to_java
        when Sol::JSObject
          arg.jsvalue.to_java
        when java.lang.Number
          arg
        when Proc
          blk2func(arg).jsvalue.to_java
        when Symbol
          raise "Ruby Symbols are not supported in jxBrowser.  Converting ':#{arg}' not supported."
        when Object
          pack(arg).to_java
        else
          raise "This is not a proper argument #{arg}.  Did you use 'proxy' or 'pack'?"
        end
      end
    end
def ruby2java ( args ) args . map do | arg | case arg when TrueClass , FalseClass , Numeric , String , NilClass , Callback , Sol :: IRBObject arg . to_java when com . teamdev . jxbrowser . chromium . JSObject arg . to_java when Sol :: JSObject arg . jsvalue . to_java when java . lang . Number arg when Proc blk2func ( arg ) . jsvalue . to_java when Symbol raise "Ruby Symbols are not supported in jxBrowser.  Converting ':#{arg}' not supported." when Object pack ( arg ) . to_java else raise "This is not a proper argument #{arg}.  Did you use 'proxy' or 'pack'?" end end end
Converts Ruby arguments into a java objects so that they can be used as parameters
to a java function call.
Converts Ruby arguments into a java objects so that they can be used as parameters to a java function call .
args  Ruby array with ruby arguments converted to java arguments
args Ruby array with ruby arguments converted to java arguments
Array
args
Ruby array with ruby arguments
Ruby array with ruby arguments