From: Adrian Klingel Date: 2009-02-22T01:58:52+09:00 Subject: How to call a module method dynamically I know about object instantiation and the send method, but the methods I want to call are not in a class. They live in a module. module Foo module Bar def mymethod "xyz" end end end I can call it statically, like: myvar = Foo::Bar::xyz But how can I call it dynamically. Basically I have some batch jobs kicked off by a rake task. I want to use a single rake task to kick off any job, so I don't have to have a task for every single job, I can just pass the job name (i.e. the name of the module method) to my one task and have it kicked off. Any help is appreciated! I'm missing something simple, but I can't find it on google or in pickaxe. -- Posted via http://www.ruby-forum.com/.