Class: Plugman::ConfigLoader
- Inherits:
-
Object
- Object
- Plugman::ConfigLoader
- Defined in:
- lib/plugman/config_loader.rb
Instance Method Summary collapse
- #call(logger) ⇒ Object
-
#initialize(config) ⇒ ConfigLoader
constructor
A new instance of ConfigLoader.
Constructor Details
#initialize(config) ⇒ ConfigLoader
Returns a new instance of ConfigLoader.
4 5 6 |
# File 'lib/plugman/config_loader.rb', line 4 def initialize(config) @config = config || [] end |
Instance Method Details
#call(logger) ⇒ Object
8 9 10 |
# File 'lib/plugman/config_loader.rb', line 8 def call(logger) @config.each { |f| require_plugin(logger, f) } end |