Method: Aker::Configuration#initialize
- Defined in:
- lib/aker/configuration.rb
#initialize(options = {}, &config) ⇒ Configuration
Creates a new configuration. If a block is given, it will be evaluated using the DSL and appended to the new instance.
67 68 69 70 71 72 |
# File 'lib/aker/configuration.rb', line 67 def initialize(={}, &config) ([:slices] || self.class.default_slices).each do |slice| self.enhance(&slice.contents) end self.enhance(&config) if config end |