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
105 106 107 108 |
# File 'lib/hellojava.rb', line 105 def func_type1(str, &func) JavaCallTest2.funcType1(str, func) return end |
.func_type2(&func) ⇒ void
119 120 121 122 |
# File 'lib/hellojava.rb', line 119 def func_type2(&func) p JavaCallTest2.funcType2(func) return end |
.func_type3(vals, &func) ⇒ void
135 136 137 138 |
# File 'lib/hellojava.rb', line 135 def func_type3(vals, &func) p JavaCallTest2.funcType3(vals.to_java(Java::double), func) return end |