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

      args.map do |arg|
        case arg
        when TrueClass, FalseClass, Numeric, String, NilClass, Callback, Sol::IRBObject
          arg
        when Sol::JSObject
          arg.jsvalue
        when Proc
          blk2func(arg).jsvalue
        when Symbol
          raise "Ruby Symbols are not supported in jxBrowser.  Converting ':#{arg}' not supported."
        when Object
          pack(arg)
        else
          raise "This is not a proper argument #{arg}.  Did you use 'proxy' or 'pack'?"
        end
      end
      
    end
#------------------------------------------------------------------------------------
# Converts Ruby arguments into a javascript objects to run in a javascript
# script.  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 javascript
# arguments
#------------------------------------------------------------------------------------
Converts Ruby arguments into a javascript objects to run in a javascript
script.  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 javascript objects to run in a javascript script . 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 ruby2js(args)
      args.map do |arg|
        case arg
        when TrueClass, FalseClass, Numeric, String, NilClass, Callback, Sol::IRBObject
          arg
        when Sol::JSObject
          arg.jsvalue
        when Proc
          blk2func(arg).jsvalue
        when Symbol
          raise "Ruby Symbols are not supported in jxBrowser.  Converting ':#{arg}' not supported."
        when Object
          pack(arg)
        else
          raise "This is not a proper argument #{arg}.  Did you use 'proxy' or 'pack'?"
        end
      end
    end
def ruby2js ( args ) args . map do | arg | case arg when TrueClass , FalseClass , Numeric , String , NilClass , Callback , Sol :: IRBObject arg when Sol :: JSObject arg . jsvalue when Proc blk2func ( arg ) . jsvalue when Symbol raise "Ruby Symbols are not supported in jxBrowser.  Converting ':#{arg}' not supported." when Object pack ( arg ) else raise "This is not a proper argument #{arg}.  Did you use 'proxy' or 'pack'?" end end end
Converts Ruby arguments into a javascript objects to run in a javascript
script.
Converts Ruby arguments into a javascript objects to run in a javascript script .
args  Ruby array with ruby arguments converted to javascript arguments
args Ruby array with ruby arguments converted to javascript arguments
Array
args
Ruby array with ruby arguments
Ruby array with ruby arguments