- ruby | ruby-interpreter
SymbolTable is a handy little Ruby class that was conceived from the union of
Hash and Symbol. SymbolTable directly extends Hash, but it stores all keys
internally as symbols. Any key that cannot be converted to a Symbol is not
valid.
.
While this may seem restrictive, it does have the nice side effect of making
all keys slightly more memorable and usable. For example, values may be set
and retrieved using any key that resolves to the same symbol.
Installed Size: 22.5 kB
Architectures: all