src code

instance method Enumerable#invoke

Enumerable#invoke(methodName[, arg...]) → Array

Invokes the same method, with the same arguments, for all items in a collection. Returns the results of the method calls.