Class: Hash

Inherits:
Object show all
Defined in:
lib/r_kit/utility/hash_extend.rb

Instance Method Summary collapse

Instance Method Details

#keys=(keys) ⇒ Object

TODO: for doc - this is usefull to fill an hash wich have a default proc



4
5
6
# File 'lib/r_kit/utility/hash_extend.rb', line 4

def keys= keys
  Array(keys).each &method(:[])
end