This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.

dig

        # Hash.dig

(from ruby core)
---
    hash.dig(key, *identifiers) -> object

---

Finds and returns the object in nested objects that is specified by
`key` and `identifiers`. The nested objects may be instances of various
classes. See [Dig Methods](rdoc-ref:dig_methods.rdoc).

Nested Hashes:
    h = {foo: {bar: {baz: 2}}}
    h.dig(:foo) # => {:bar=>{:baz=>2}}
    h.dig(:foo, :bar) # => {:baz=>2}
    h.dig(:foo, :bar, :baz) # => 2
    h.dig(:foo, :bar, :BAZ) # => nil

Nested Hashes and Arrays:
    h = {foo: {bar: [:a, :b, :c]}}
    h.dig(:foo, :bar, 2) # => :c

This method will use the [default
values](#class-Hash-label-Default+Values) for keys that are not present:
    h = {foo: {bar: [:a, :b, :c]}}
    h.dig(:hello) # => nil
    h.default_proc = -> (hash, _key) { hash }
    h.dig(:hello, :world) # => h
    h.dig(:hello, :world, :foo, :bar, 2) # => :c



      

This is MURDOC! A Ruby documentation browser inspired by Smalltalk-80. It allows you to learn about Ruby by browsing through its class hierarchies, and see any of its methods.