method

call

v1_9_3_392 - Show latest stable - Class: Method
call(*args)
public

Invokes the meth with the specified arguments, returning the method’s return value.

m = 12.method("+")
m.call(3)    #=> 15
m.call(20)   #=> 32