From: "Ara.T.Howard" Date: 2005-09-19T23:42:12+09:00 Subject: help with tricky proc/binding issue i'm trying to be able to define a proc that can be called in the context of self, eg: block = lambda{ p 42 } an_obj.instance_eval &block but which can also be called with arguments, for example (imaginary ruby): b = lambda{|x| p [x, y]} class C def y; 42; end end c = C::new x = 42 c.arg_instance_eval(x, &b) #=> [42, 42] any ideas? -a -- =============================================================================== | email :: ara [dot] t [dot] howard [at] noaa [dot] gov | phone :: 303.497.6469 | Your life dwells amoung the causes of death | Like a lamp standing in a strong breeze. --Nagarjuna ===============================================================================