Hi Gavin,
Another suggestion about the Funny Symbol faq:
I just knew that *name used as parameter of a function/method means variable
length parameters, but how about &name? What is & used for?
See the following code I copied somewhere from this list
def _sql(&block)
@conn.Open if @sql_blocks_open == 0
@sql_blocks_open += 1
yield
ensure
@sql_blocks_open -= 1
@conn.Close if @sql_blocks_open == 0
end
Thanks!
Shannon
···
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail