title: Ruby, adding multiple objects to an array at once
body: <p>I have Shop class, and I want to add multiple items at once.
  I want this:</p>
  
  <pre><code>shop1 = Shop.new
  product1 = Product.new("Dress", 50)
  shop1.add_products(product1, 5)
  </code></pre>
  
  <p>to add 5 dresses to warehouse</p>
  
  <pre><code>def add(product, qty)
    @products &lt;&lt; product * qty
  end
  </code></pre>
  
  <p>so later I can use</p>
  
  <pre><code>@products.select{|p| p.name == "Dress"}.count
  </code></pre>
  
  <p>and get 5. Is it possible?</p>