This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.
# Hash.store (from ruby core) --- store(p1, p2) --- Hash#store is an alias for Hash#[]=. Associates the given `value` with the given `key`; returns `value`. If the given `key` exists, replaces its value with the given `value`; the ordering is not affected (see [Entry Order](#class-Hash-label-Entry+Order)): h = {foo: 0, bar: 1} h[:foo] = 2 # => 2 h.store(:bar, 3) # => 3 h # => {:foo=>2, :bar=>3} If `key` does not exist, adds the `key` and `value`; the new entry is last in the order (see [Entry Order](#class-Hash-label-Entry+Order)): h = {foo: 0, bar: 1} h[:baz] = 2 # => 2 h.store(:bat, 3) # => 3 h # => {:foo=>0, :bar=>1, :baz=>2, :bat=>3} (This method is an alias for Hash#[]=.) Hash#store is an alias for Hash#[]=. Associates the given `value` with the given `key`; returns `value`. If the given `key` exists, replaces its value with the given `value`; the ordering is not affected (see [Entry Order](#class-Hash-label-Entry+Order)): h = {foo: 0, bar: 1} h[:foo] = 2 # => 2 h.store(:bar, 3) # => 3 h # => {:foo=>2, :bar=>3} If `key` does not exist, adds the `key` and `value`; the new entry is last in the order (see [Entry Order](#class-Hash-label-Entry+Order)): h = {foo: 0, bar: 1} h[:baz] = 2 # => 2 h.store(:bat, 3) # => 3 h # => {:foo=>0, :bar=>1, :baz=>2, :bat=>3}
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.