meth.call(args, ...) â obj
Instance Public methods
Invokes the meth with the specified arguments, returning the method's return value.
1 2 3 | m = 12 .method( "+" ) m.call( 3 ) #=> 15 m.call( 20 ) #=> 32 |
Invokes the meth with the specified arguments, returning the method's return value.
1 2 3 | m = 12 .method( "+" ) m.call( 3 ) #=> 15 m.call( 20 ) #=> 32 |
Designed by : w10schools
service@w10schools.com
Please login to continue.