Object#instance_exec

instance_exec is basically a instance_eval that allows you to pass parameters to the block. It’s available in stock Ruby 1.9 but Mauricio Fernandez has written a version for 1.8.