Method: Vedeu::Plugins#register
- Defined in:
- lib/vedeu/plugins/plugins.rb
#register(name, plugin = false) ⇒ Array<void>
Register plugin with name in an internal array.
26 27 28 29 30 31 |
# File 'lib/vedeu/plugins/plugins.rb', line 26 def register(name, plugin = false) Vedeu.log(type: :debug, message: "Attempting to register plugin: #{name}".freeze) plugins << plugin if plugin && not_loaded?(name) end |