Ruby - Enumerable and Collection Processing
Given an array of hashes representing products with keys
:name and :price, how can you use inject to find the total price of all products?
products = [
{ name: "Book", price: 12 },
{ name: "Pen", price: 3 },
{ name: "Notebook", price: 7 }
]