From: Sebastian Hungerecker Date: 2008-11-19T16:36:02+09:00 Subject: Re: Subclassing Hash to enforce value uniqueness ala key uniqueness. Sebastian Hungerecker wrote: >   def to_hash >     @key_value >   end This should return @key_value.dup >   def invert >     @value_key >   end And this should either return @value_key.dup or another instance of OneToOne where the both hashes are switched. HTH, Sebastian -- Jabber: sepp2k@jabber.org ICQ: 205544826