Class: CoConfig::Configuration

Inherits:
Object
  • Object
show all
Includes:
Loader
Defined in:
lib/co_config.rb

Instance Method Summary collapse

Methods included from Loader

#load, load

Constructor Details

#initialize(file, location = nil) ⇒ Configuration

Returns a new instance of Configuration.



9
10
11
12
# File 'lib/co_config.rb', line 9

def initialize(file, location = nil)
  @location = location if location.present?
  instance_eval(File.read(file.to_s), file.to_s) if file.exist?
end