From: John Lam Date: 2005-12-16T00:14:23+09:00 Subject: Re: Dynamically adding methods to a Ruby class ------=_Part_7860_31507486.1134659656510 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks for the suggestion, Brian. The code in method_missing will use reflection to generate the shim on the fly, so I don't need to keep a list of methods that have been generated. Th= e shim is added as an instance method to the class object, so subsequent call= s will always go via the shim and not via method_missing. Cheers, -John http://www.iunknown.com ------=_Part_7860_31507486.1134659656510--