Your Ruby-fu - pretty good.

Yes, at the end of a block the assignment is meaningless and the value is returned.  This code was moved from a place that didn't end the block.  Will fix.