From: Daniel Amelang Date: 2005-10-25T06:11:40+09:00 Subject: instance_eval/instance_exec discussion ------=_Part_49530_24219276.1130188296806 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Introduction: At RubyConf, matz talked about introducing a new method 'instance_exec'. I understood its purpose was to provide a way to pass arguments to instance_eval. If this is not the case stop me here :) Assuming that this _is_ the case, I'd like to introduce a pure-ruby implementation for instance_eval that allows for passing arguments to instance_eval. It's not anything special, but I thought I would bring it up for discussion. Implementation: class Object alias __instance_eval__ instance_eval def instance_eval(*args, &block) if block.nil? __instance_eval__(*args) else (class<