PageRenderTime 15ms CodeModel.GetById 1ms app.highlight 9ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/ruby/java/runme.rb

#
Ruby | 18 lines | 11 code | 7 blank | 0 comment | 0 complexity | 5e64485eed2e78bdf100b4950ac025a7 MD5 | raw file
 1require 'example'
 2
 3Example.JvCreateJavaVM(nil)
 4Example.JvAttachCurrentThread(nil, nil)
 5
 6e1 = Example::Example.new(1)
 7e2 = Example::Example.new(2)
 8
 9print e1.Add(1,2),"\n"
10print e1.Add(1.0,2.0),"\n"
11e3 = e1.Add(e1,e2)
12print e3.mPublicInt,"\n"
13
14
15print e1.Add("1","2"),"\n"
16
17Example.JvDetachCurrentThread()
18