RubyGems Navigation menu

with_reverse_lookup 0.0.1

Provides a simple modification to existing hashes to provide key lookup by value in addition to value lookup by key. For example: TABLE = { :key => 1 }.extend(WithReverseLookup) TABLE[:key] #=> 1 TABLE[1] #=> :key This is mostly useful for lookup tables.

Versions:

  1. 0.0.1 - September 1, 2010 (4 KB)

Authors:

  • Matt Todd

Owners:

B6861bc75bff3c594212338a914a39ad

Total downloads 1,268

For this version 1,268

Required Ruby Version: None

Licenses:

N/A

Gemfile:
gem 'with_reverse_lookup', '~> 0.0.1' = Copy to clipboard Copied!

install:
gem install with_reverse_lookup = Copy to clipboard Copied!

Links: