class Hashery::CRUDHash

The CRUDHash is essentailly the same as the Hash class, but it reduces the the set of necessary methods to the fundametal CRUD requirements. All other methods route through these CRUD methods. This is a better general design, although it is, of course, a little bit slower. The utility of this class becomes appearent when subclassing or delegating, as only a handful of methods need to be changed for all other methods to work accordingly.

In addition to the CRUD features, CRUDHash supports a ‘#key_proc`, akin to `#default_proc`, that can be used to normalize keys.

The CRUD methods are:

In addition to these main methods, there are these supporting “CRUD” methods: