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

dig

        # Struct.dig

(from ruby core)
---
    dig(name, *identifiers) -> object
    dig(n, *identifiers) -> object

---

Finds and returns an object among nested objects. The nested objects may
be instances of various classes. See [Dig
Methods](rdoc-ref:dig_methods.rdoc).

Given symbol or string argument `name`, returns the object that is
specified by `name` and `identifiers`:

    Foo = Struct.new(:a)
    f = Foo.new(Foo.new({b: [1, 2, 3]}))
    f.dig(:a) # => #<struct Foo a={:b=>[1, 2, 3]}>
    f.dig(:a, :a) # => {:b=>[1, 2, 3]}
    f.dig(:a, :a, :b) # => [1, 2, 3]
    f.dig(:a, :a, :b, 0) # => 1
    f.dig(:b, 0) # => nil

Given integer argument `n`, returns the object that is specified by `n`
and `identifiers`:

    f.dig(0) # => #<struct Foo a={:b=>[1, 2, 3]}>
    f.dig(0, 0) # => {:b=>[1, 2, 3]}
    f.dig(0, 0, :b) # => [1, 2, 3]
    f.dig(0, 0, :b, 0) # => 1
    f.dig(:b, 0) # => nil



      

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.