lib/cistern/hash.rb in cistern-2.8.0 vs lib/cistern/hash.rb in cistern-2.8.1

- old
+ new

@@ -1,4 +1,6 @@ +# frozen_string_literal: true + class Cistern::Hash # @example # Cistern::Hash.slice({ :a => 1, :b => 2 }, :a) #=> { :a => 1 } # @return [Hash] copy of {#hash} containing only {#keys} def self.slice(hash, *keys)