Class QueryHash
In: lib/hashery/queryhash.rb
Parent: Hash

QueryHash

QueryHash is a similar to OpenHash. Like OpenHash, entries can be assigned via setter methods, but entries can only be looked up via query methods (i.e. methods ending in a ?-mark), hence the name of this class.

A QueryHash is not quite as elegant as an OpenHash in that reader methods must end in ?-marks, but it remains fully compatible with Hash regardless of it‘s settings.

Methods

Public Instance methods

[Validate]