From: Run Paint Run Run Date: 2009-10-25T04:51:30+09:00 Subject: [ruby-core:26281] [Bug #2212] Using a Lambda with Inappropriate Arity for Hash#default_proc= Issue #2212 has been updated by Run Paint Run Run. Thank you. Could the same logic be applied to Hash.new? h = Hash.new &->(a){} h[:key] ArgumentError: wrong number of arguments (2 for 1) from (irb):2:in `yield' from (irb):2:in `default' from (irb):2 from /usr/local/bin/irb:12:in `
---------------------------------------- http://redmine.ruby-lang.org/issues/show/2212 ---------------------------------------- http://redmine.ruby-lang.org