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

deconstruct_keys

        # Struct.deconstruct_keys

(from ruby core)
---
    deconstruct_keys(array_of_names) -> hash

---

Returns a hash of the name/value pairs for the given member names.

    Customer = Struct.new(:name, :address, :zip)
    joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345)
    h = joe.deconstruct_keys([:zip, :address])
    h # => {:zip=>12345, :address=>"123 Maple, Anytown NC"}

Returns all names and values if `array_of_names` is `nil`:

    h = joe.deconstruct_keys(nil)
    h # => {:name=>"Joseph Smith, Jr.", :address=>"123 Maple, Anytown NC", :zip=>12345}



      

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.