On Wednesday, June 2, 2004, 6:38:19 AM, Joel wrote:

> You're right, there's no reason to use the &bl notation. You can use the
> Kernel#block_given? method:


Just a note for the OP.  The following example shows the advantage of
the &block notation in certain circumstances.

  def bar
    return 5 + yield
  end

  def foo(&block)
    bar(block)
  end

'foo' is now a proxy for 'bar'.

Gavin