7stud -- wrote in post #1090536:
>
>   def to_s
>     @hash.inspect
>   end
>
> end
>

To be consistent, instead of using @hash in to_s(), the code should use 
the getter:

def to_s
  hash.inspect
end

-- 
Posted via http://www.ruby-forum.com/.