From: Igor Pirnovar Date: 2009-04-06T03:31:58+09:00 Subject: Re: Function as Parameter? Sorry, the in the above TestFunc {{ var }} is out of scope. I just wanted to emphasize the fact that Method objects are not closures. Following is the correction def TestFunc() puts 'Test' end ... var = "this time not seen in my_fu_obj" my_fu_obj = method(:TestFunc) LoginForm.new(xaApp,'TestApp', my_fu_obj) -- Posted via http://www.ruby-forum.com/.