From: Todd Benson Date: 2012-10-25T02:44:54+09:00 Subject: Is there a better way to invoke methods? I'm writing a simple script and need to shoot off methods based on user input via ARGV. I'm trying to avoid the if, elseif chain, so right now I'm using send... h = { "a" => :add, "d" => :display #etc } #other code my_obj.send(h[user_input], parameters) I'm just wondering if there is a more common practice for this sort of thing. Todd