From: Aaron Janes Date: 2006-03-10T06:39:00+09:00 Subject: Re: Error calling block in sub class > Is that what you're after? That's spot on. Modified my code like you said and it worked perfectly. So the |obj| is the way you specify a required parameter for a code block? When omitting the |obj| as well as the return I get the error "undefined local variable or method `obj' for.." so that must be the case. Thanks for your help. Aaron -- Posted via http://www.ruby-forum.com/.