Class: IdHash
- Inherits:
-
HashOfArrays
- Object
- Hash
- HashOfArrays
- IdHash
- Defined in:
- lib/id_hash.rb
Instance Method Summary collapse
Methods inherited from HashOfArrays
#clone, #initialize, #join, join, #sort_arrays!, #subtract
Constructor Details
This class inherits a constructor from HashOfArrays
Instance Method Details
#add(key, *values) ⇒ Object
55 56 57 58 59 |
# File 'lib/id_hash.rb', line 55 def add(key, *values) super(key, *values) self[key].uniq! self end |