Passing block as a named parameter to a method.