0 replies on 1 page.
require 'hashslice' hash = {'a' => 1, 'b' => 2, 'c' => 3} hash['a, 'b'] -> [1, 2] hash['a, 'b'] = 4, 5 hash -> {'a' => 4, 'b' => 5, 'c' => 3}
Read: Slice & Dice