Module: AfterDo::Loader

Defined in:
lib/after_do/loader.rb,
lib/after_do/loader/config.rb,
lib/after_do/loader/errors.rb,
lib/after_do/loader/version.rb,
lib/after_do/loader/aspect_applier.rb,
lib/after_do/loader/errors/invalid_config.rb,
lib/after_do/loader/errors/cannot_apply_aspect.rb

Defined Under Namespace

Modules: Errors Classes: AspectApplier, Config

Constant Summary collapse

VERSION =
'0.2.0'

Class Method Summary collapse

Class Method Details

.load(config_path) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/after_do/loader.rb', line 12

def self.load(config_path)
  config = Config.new(config_path)

  config.aspects.each do |aspect|
    AspectApplier.new(aspect).apply
  end
end