> > Yes, but not in the helper method. In the code I've shown there's
> > always a block passed to the helper method. Phlip has a point here.
>
> That's very easy to solve:

What about the two kinds of performance? Programmer performance and
program performance?

This permits only one (DRY) call to y:

>       y { yield if block_given? }

So is it performant? Note someone here asserted that yield was faster,
so are these constructions still faster than a brute-force 'block.call
if block' ?

When I see 'if block' I think of comparing the RVALUE type field to
nil or false. Just a bit mask.

-- 
 Phlip
 http://www.oreilly.com/catalog/9780596510657/
 ^ assert_xpath
 http://tinyurl.com/yrc77g  <-- assert_latest Model