The hashslice library adds builtin hash slicing to Ruby's Hash class. This lets you reference, or assign to, multiple hash keys simultaneously via the Hash#[] and Hash#[]= methods, respectively.
Daniel J. Berger, Michael Granger
September 20, 2011 3:17am
無