method_map = { 'name1' => :method_name1,
'name2' => :method_name2,
'name3' => :method_name3}
send(method_map[name])
If the name
is the actual method name, you could simply
send(name)
and if you can calculate method_name
from name you could try:
send("method_#{name}")
If these methods have arguments - simply add them to the send
method:
send(name, some, other, args)