No commit activity in last 3 years
No release in over 3 years
Hash that has same value on combination of arrayed params for a key
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.8.3
~> 3.12
~> 2.8.0
 Project Readme

CombinationHash

The hash that retuns same value for a combination of arrayed parameters associated as a key

Example

ch = CombinationHash.new
ch[2,3,4] = 8
p ch[2,3,4] #=> 8
p ch[3,2,4] #=> 8
p ch[4,2,3] #=> 8

Conctructor Methods

ch = CombinationHash([3,4,5] => 6
                     [2,1] => 10)
					 
p ch[1,2] #=> 10

Install

Gemfile

gem 'combination_hash'

bundle install

or just $ gem install combination_hash

Copyright

Copyright (c) 2012 Masaki Sawamura. See LICENSE.txt for further details.