Thanks. I was on my way out the door when I wrote this and didn't have time t=
o play with it.

On Aug 15, 2010, at 12:45 PM, "Pablo Torres N." <tn.pablo / gmail.com> wrote:

> On Sun, Aug 15, 2010 at 07:28, Andrew Wagner <wagner.andrew / gmail.com> wro=
te:
>> Here's one approach:
>>=20
>> def get(name,value)
>>  url_method_name =3D "create_#{name}".to_sym
>>  method =3D # look up create_xxx method, I can't recall the syntax for th=
is
>>  method.call(value)
>> end
>=20
> That would be
>=20
> def get(name,value)
>  url_method_name =3D "create_#{name}".to_sym
>  method =3D self.method(url_method_name)
>  method.call(value)
> end
>=20
> If you are inside the class; if you are not, first get an object of
> said class and replace 'self' for the variable in which you put it.
>=20