title: (undefined method `+@' for []:Array)
body: <p>I'm getting a very strange error message when I try to iterate through an array of objects. The error is</p>
  
  <pre><code>NoMethodError (undefined method `+@' for []:Array):
  </code></pre>
  
  <p>Here is the code of that loop.</p>
  
  <pre><code>#go through items and see if there are any corresponding offers 
      #All matches are stored in a hash
      items.each do |itemsi|
          bestoffer = -1
          matchescounter++ #matchescounter only get incredmented when all the offers have been taken care of
          offers.each do |offs|
          if itemsi.togive.to_str == offs.totake.to_str
              if offs.togive.to_int &gt; bestoffer
                  bestoffer = offs.togive.to_int
                  matches[matchescounter].store(itemi, offer)         
              end#if
          end#if
          end#offers loop
      end#items loop
  </code></pre>
  
  <p>I don't have +@ anywhere in my code. Strange</p>