Class: NormalizedHash

Inherits:
Hash
  • Object
show all
Extended by:
ModNormalizedHash::ClassMethods
Includes:
ModNormalizedHash::InstanceMethods, ModNormalizedHash::OverrideMethods
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

StringKeyHash, SymbolKeyHash

Method Summary

Methods included from ModNormalizedHash::ClassMethods

MultiTypedHash, []

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