16
Jak wyodrębnić pod-hash z hasha?
Mam haszysz: h1 = {:a => :A, :b => :B, :c => :C, :d => :D} Jaki jest najlepszy sposób na wyodrębnienie takiego podhashu? h1.extract_subhash(:b, :d, :e, :f) # => {:b => :B, :d => :D} h1 #=> {:a => :A, :c => :C}