From: Tanner Burson Date: 2006-10-03T23:32:26+09:00 Subject: Re: How to Call a static method? ------=_Part_18604_25461718.1159885924999 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 10/3/06, Daniel V=F6lkerts wrote: > > Okay, misleading question. > > What if I like to call the classes dynamically e.g. > > def mymethod(class,method) > call(class,method,options) > end # Both as strings or symbols? def mymethod(class,method) const_get(class).send(method) end > ? > > Where call is the Ruby function I'm looking for. > > greetings, > -- > Daniel V=F6lkerts > Protected by Anti Pesto. -- Wallace & Gromit > > --=20 =3D=3D=3DTanner Burson=3D=3D=3D tanner.burson@gmail.com http://tannerburson.com <---Might even work one day... ------=_Part_18604_25461718.1159885924999--