On Thu, May 8, 2008 at 12:51 AM, ara.t.howard <ara.t.howard / gmail.com> wrote:
>  On May 7, 2008, at 5:18 AM, Mikel Lindsaar wrote:
>  class Fruit
>   def to_hash
>     { :name => name, :price => price }
>   end
>  end
>  array.each{|fruit| hash.update fruit.to_hash}

Hmm.. put the responsibility back into the class.  I guess that
actually makes the most sense.

Thanks David and Rob for your suggestions, totally hadn't considered
those idioms.

Mikel