Dylan Lukes wrote:
> 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?
> 

David A. Black wrote:
>But the main problem is that...

You've named every variable in your program "plugin".  Guess what? 
That's confusing.

You're specific error is in this line:

>       plugins.append(plugin(server, CONFIG[plugin.IDENTIFIER]))

See the stuff in the parentheses?  Specifically this:

plugin(server, CONFIG[plugin.IDENTIFIER])

Where is the plugin() method?

-- 
Posted via http://www.ruby-forum.com/.