From: incag neato Date: 2012-09-13T11:09:26+09:00 Subject: Breaking Down the Block Can someone please explain in plain english how this block treats the given variables (and values in the array)? I am struggling to understand the relationship of 't' and 'n' with the array. class Array def sum inject(0) {|t,n| t + n} end end puts [1,2,3].sum Is 't' effectively labeled as '0' (zero), given the assignment on the inject method? What "is" 't' exactly? -- Posted via http://www.ruby-forum.com/.