Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/support_ext/hash.rb

Instance Method Summary collapse

Instance Method Details

#get_values_for_keys(*keys) ⇒ Object



2
3
4
5
6
# File 'lib/support_ext/hash.rb', line 2

def get_values_for_keys(*keys)
  keys.each_with_object([]) do |key, array|
    array << self[key].to_s
  end
end