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

slice

        # Hash.slice

(from ruby core)
---
    hash.slice(*keys) -> new_hash

---

Returns a new Hash object containing the entries for the given `keys`:
    h = {foo: 0, bar: 1, baz: 2}
    h.slice(:baz, :foo) # => {:baz=>2, :foo=>0}

Any given `keys` that are not found are ignored.



      

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.