plus1 = Hash.new {|hash, key| key.succ }plus1[1] # 2plus1["one"] # "onf": see String.succplus1.default_proc # Returns the Proc that computes defaultsplus1.default(10) # => 11: default returned for key 10