Class: HelloJavaLib::FuncTypes
- Inherits:
-
Object
- Object
- HelloJavaLib::FuncTypes
- Defined in:
- lib/hellojava.rb
Overview
引数に関数型の場合
Class Method Summary collapse
Class Method Details
.func_type1(str, &func) ⇒ void
128 129 130 131 |
# File 'lib/hellojava.rb', line 128 def func_type1(str, &func) JavaCallTest2.funcType1(str, func) return end |
.func_type2(&func) ⇒ void
142 143 144 145 |
# File 'lib/hellojava.rb', line 142 def func_type2(&func) p JavaCallTest2.funcType2(func) return end |
.func_type3(vals, &func) ⇒ void
158 159 160 161 |
# File 'lib/hellojava.rb', line 158 def func_type3(vals, &func) p JavaCallTest2.funcType3(vals.to_java(Java::double), func) return end |