Looks like this method wasn't completed. Inspecting isn't a necessary part of the function, and your inject method is missing some arguments. A good solution here would look like:
input.flatten.inject(1, :\*)