On Sun, Aug 15, 2010 at 07:28, Andrew Wagner <wagner.andrew / gmail.com> wrote:
> Here's one approach:
>
> def get(name,value)
> url_method_name = "create_#{name}".to_sym
> method = # look up create_xxx method, I can't recall the syntax for this
> method.call(value)
> end

That would be

def get(name,value)
  url_method_name = "create_#{name}".to_sym
 method = self.method(url_method_name)
 method.call(value)
end

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.