Flowdock
default_proc() public

If Hash::new was invoked with a block, return that block, otherwise return nil.

   h = Hash.new {|h,k| h[k] = k*k }   #=> {}
   p = h.default_proc                 #=> #<Proc:0x401b3d08@-:1>
   a = []                             #=> []
   p.call(a, 2)
   a                                  #=> [nil, nil, 4]
Show source
Register or log in to add new notes.