libraries/provider_ltm_pool.rb
#
# Return new hash with subset of keys
#
# @param [Hash] s
#   Hash to get values from
# @param [Array] keys
#   Keys to retrieve from Hash
#
# @return [Hash]
#   new Hash that contains only the subset of keys
#
Return new hash with subset of keys
Return new hash with subset of keys
def slice(s, *keys)
        h = {}
        keys.each { |k| h[k] = s[k] }
        h
      end
def slice ( s , * keys ) h = { } keys . each { | k | h [ k ] = s [ k ] } h end
Return new hash with subset of keys
Return new hash with subset of keys
new Hash that contains only the subset of keys
new Hash that contains only the subset of keys
Hash
s
<not_specific>
keys
<not_specific>
<not_specific>
keys Keys to retrieve from Hash
keys Keys to retrieve from Hash