>
> def iteration obj
> if obj.is_a? Hash
>  obj.each { |new_obj| iteration(new_obj) }
> else
>   # It's not a hash, do stuff with it!
> end
> end
>
> my_hash.each { |obj| iteration(obj) }
>

Oops.  I fixed line 3 above :)

-Jonathan Nielsen