此文翻译自7 daily use cases of Ruby Hash,限于本人水平,翻译不当之处,敬请指教! ... def filter(hsh, *keys) hsh.dup.tap do |h| keys.each { |k| h.delete(k) } ...
確定! 回上一頁