Using the * in argument transforms all arguments given into an array. 
The body of this method could be:

b.flatten.inject(:*)