This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.
# Hash.default (from ruby core) --- hash.default -> object hash.default(key) -> object --- Returns the default value for the given `key`. The returned value will be determined either by the default proc or by the default value. See [Default Values](#class-Hash-label-Default+Values). With no argument, returns the current default value: h = {} h.default # => nil If `key` is given, returns the default value for `key`, regardless of whether that key exists: h = Hash.new { |hash, key| hash[key] = "No key #{key}"} h[:foo] = "Hello" h.default(:foo) # => "No key foo"
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.