RubyTrends


Name:
Stash [vote]
Description:

The Stash class is a Hash compatible class which converts all keys to strings. This has two advantages. First it means hash entries have indifferent access. 1"1" and :1 are all equivalent. Any object that defines to_s can be used as a key. Secondly, since strings are garbage collected so are Stash objects.


Edit