Method: Roby::Application#each_plugin
- Defined in:
- lib/roby/app.rb
#each_plugin(on_available = false) ⇒ Object
Enumerates all available plugins, yielding only the plugin module (i.e. the plugin object itself)
1394 1395 1396 1397 1398 1399 1400 1401 1402 |
# File 'lib/roby/app.rb', line 1394 def each_plugin(on_available = false) plugins = self.plugins if on_available plugins = available_plugins.map { |name, _, mod, _| [name, mod] } end plugins.each do |(_, mod)| yield(mod) end end |