Path: | lib/hashery/queryhash.rb |
Last Update: | Tue Apr 05 12:31:31 -0400 2011 |
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.