From: Tomas Fischer Date: 2007-02-14T22:46:13+09:00 Subject: Dynamic function calls Hi, I want to write an installer, which checks, if sth. is present on the target system and if not, the installer will install it. For example, the installer checks if zip is installed. So I have tons of check functions and corresponding install funtions: def check_zip ... return true / false end def install_zip ... system(apt-get install zip) end My idea is to use an array, which contains the result of the checking process array= [zip, ...] means, that we have to install zip. Is it possible to "connect" it to the corresponding install function? for each element in array call install_ array[index] end Thanks. Best regards, Tomas -- Posted via http://www.ruby-forum.com/.