title: Iterate through an Ruby Array and get(yield or return) each item in the array
body: <p>I have an array and I need to create a class method named "each" to yield or return (not sure what the difference is of those or which I need to use if any) each item in the array when the method is called.</p>
  
  <p>Do I need to use return instead of yield or neither?</p>
  
  <pre><code>class Sum
  
   def initialize
     @sum =  Array.new
   end
  
   def each
   @sum.each do |item|
     yield item
   end 
  
  end
  </code></pre>