Class: NormalizedHash
- Inherits:
-
Hash
- Object
- Hash
- NormalizedHash
- Extended by:
- ModNormalizedHash::ClassMethods
- Defined in:
- lib/doodle/normalized_hash.rb
Overview
Note that some methods return a new Hash
not an object of your subclass. This is by design (i.e. it’s how ruby works). If you want the new hash to have the same properties as its source, use something like:
h = StringKeyHash.new(h.invert)
The methods are:
invert => Hash
select, reject => Hash in 1.9
Direct Known Subclasses
Method Summary
Methods included from ModNormalizedHash::ClassMethods
Methods included from ModNormalizedHash::OverrideMethods
#normalize_key, #normalize_value
Methods included from ModNormalizedHash::InstanceMethods
#[], #[]=, #default, #default=, #delete, #fetch, #has_value?, #index, #initialize, #key?, #merge, #replace, #store, #update, #values_at