From: Pit Capitain Date: 2007-08-07T00:29:10+09:00 Subject: Re: yield or call? 2007/8/6, Phlip : > When writing API-style code, I always start with &block because it's only a > matter of time before I refactor the code and start passing that &block into > a helper method. Phlip, you can do the equivalent with yield: def x(&b); xx(&b); end def xx(&b); b.call; end vs. def y; yy { yield }; end def yy; yield; end Also in this case the yield version is much faster. Regards, Pit