> Hi,
>
> I'd like to be able to take a hash whose values are either hashes or
> some other object. If the values are hashes, I'd like to iterate over
> them and keep this up until the values aren't hashes. And I won't know
> how many level there will be until the program is running. Any
> suggestions?
>

def iteration obj
  if obj.is_a? Hash
    iteration obj
  else
     # It's not a hash, do stuff with it!
  end
end

my_hash.each { |obj| iteration(obj) }



^^ Probably not the best way, but it works...

-Jonathan Nielsen