lib/ext/hash.rb
# Dig to the given key and field using the value as the value for key
Dig to the given key and field using the value as the value for key
Dig to the given key and field using the value as the value for key
def dig_and_replace key, field
      return unless self[key]
      self[key] = self[key][field]
    end
def dig_and_replace key , field return unless self [ key ] self [ key ] = self [ key ] [ field ] end
Dig to the given key and field using the value as the value for key
Dig to the given key and field using the value as the value for key
key
<not_specific>
field
<not_specific>