Class: CoConfig::Configuration
- Inherits:
-
Object
- Object
- CoConfig::Configuration
- Includes:
- Loader
- Defined in:
- lib/co_config.rb
Instance Method Summary collapse
-
#initialize(file, location = nil) ⇒ Configuration
constructor
A new instance of Configuration.
Methods included from Loader
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 |