title: Ruby: Adding items to store hash and shopping cart array
body: <p>I am just learning Ruby.  Trying to add items to products hash in a Store object and then add some of those items to a cart array.  I can get the store object to be created with store = Store.new that has the products hash and cart array.  But don't know how to add products to the hash and then to the array.  I am probably not even close, but here is what I have so far:</p>
  
  <pre><code>class Store
   def initialize
     @products = {"item1" =&gt; 2.5, "item2" =&gt; 3.89, "item3" =&gt; 4.65, "item4" =&gt; 3.0, "item5" =&gt; 6.5}
     @cart = []
  
   end
  
   def add_to_cart( item, price )
     @cart &lt;&lt; 
   end
  
   def add_product( item, price )
     @products &lt;&lt;
   end
  end
  </code></pre>
  
  <p>Any help would be appreciated.  Thanks.</p>