Class: Micon::Core

Inherits:
Object
  • Object
show all
Defined in:
lib/rad_ext/configurators.rb

Overview

%w(

abstract
runtime
web

).each{|f| require “rad_ext/configurators/#{f}”}

Instance Method Summary collapse

Instance Method Details

#configure(configurator_name, dir, &block) ⇒ Object



8
9
10
11
12
# File 'lib/rad_ext/configurators.rb', line 8

def configure configurator_name, dir, &block      
  configurator_class = "Rad::Configurators::#{configurator_name.to_s.classify}".constantize      
  configurator = configurator_class.new dir
  block.call configurator if block
end