Method: Nanoc::Core::Configuration#initialize

Defined in:
lib/nanoc/core/configuration.rb

#initialize(dir:, hash: {}, env_name: nil) ⇒ Configuration

Returns a new instance of Configuration.



48
49
50
51
52
53
54
# File 'lib/nanoc/core/configuration.rb', line 48

def initialize(dir:, hash: {}, env_name: nil)
  @env_name = env_name
  @wrapped = hash.__nanoc_symbolize_keys_recursively
  @dir = dir

  validate
end