Class: Plugman::ConfigLoader

Inherits:
Object
  • Object
show all
Defined in:
lib/plugman/config_loader.rb

Instance Method Summary collapse

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