From: Simon Strandgaard <0bz63fz3m1qt3001@...> Date: 2003-06-09T03:36:23+09:00 Subject: Re: [RCR] join block I know this has been discussed before, but I don't know what the conclution were.. What is your opinions ? class Array alias :oldjoin :join def join(sep=$,) return oldjoin(sep) if not block_given? collect { |y| yield(y) }.oldjoin(sep) end end p [1, 2, 3].join(", ") { |v| "(#{v})" } # "(1), (2), (3)" p [1, 2, 3].join(" ") { |v| "