Skip to content
No description or website provided.
Ruby
Find file
Latest commit 9d8707a Sep 1, 2010 @mtodd Add Gemspec

README.textile

With Reverse Lookup

Extends a hash to be able to look up keys by value (for bi-directional hashes).

Sample

table = {
  :foo => "Foo",
  :bar => "Bar",
  :baz => "Baz"
}.extend(WithReverseLookup)

table[:foo]   #=> "Foo"
table["Foo"]  #=> :foo

License

MIT

Copyright

Copyright © 2010 Matt Todd.

Something went wrong with that request. Please try again.