From: Dylan Lukes Date: 2009-09-17T05:38:02+09:00 Subject: block issues... In the following block, each plugin in the constant hash PLUGINS is supposed to take two parameters, server and config. The only problem here is that: rmss.rb:175:in `start_plugins': undefined method `plugin' for main:Object (NoMethodError) def start_plugins(server) plugins = [] PLUGINS.each { |plugin| if CONFIG.has_key?(plugin.IDENTIFIER) plugins.append(plugin(server, CONFIG[plugin.IDENTIFIER])) end } end Does anyone have any solution for this? The idea is to load a list of plugins from the PLUGINS and CONFIG hashes into an array, with their matching configuration, and then run them all. The latter part is not included in this code, as is also the case for when there is no configuration, which has also not been added. -- Posted via http://www.ruby-forum.com/.