hash.rb

Path: lib/dig_rb/hash.rb
Last Update: Sat Feb 23 07:11:54 +0000 2019

Methods

dig  

Public Instance methods

Retrieves the value object corresponding to the each key objects repeatedly.

    h = { foo: {bar: {baz: 1}}}
    h.dig(:foo, :bar, :baz)           #=> 1
    h.dig(:foo, :zot)                 #=> nil

[Validate]