From: Matt Armstrong Date: 2001-12-01T03:01:24+09:00 Subject: [ruby-talk:27100] Re: Using Enumerable David Alan Black writes: > def each > yield *@pointer + 1 .. @end > end This led me to this confusion: irb(main):001:0> def each() irb(main):002:1> yield 1,2,3,4,5,6,7,8,9 irb(main):003:1> end nil irb(main):004:0> each() {|i| puts i} 1 2 3 4 5 6 7 8 9 nil irb(main):005:0> each() {|a,b| puts "#{a}-#{b}"} 1-2 nil Does the number of arguments used in the block (|i| -vs- |a,b|) change the way yield calls the block? -- matt