Class: EnvManifest::Settings
- Inherits:
-
Object
- Object
- EnvManifest::Settings
- Defined in:
- lib/env_manifest/settings.rb
Defined Under Namespace
Classes: MissingRequiredEnv
Instance Attribute Summary collapse
-
#file_path ⇒ Object
readonly
Returns the value of attribute file_path.
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(file_path) ⇒ Settings
constructor
A new instance of Settings.
Constructor Details
#initialize(file_path) ⇒ Settings
Returns a new instance of Settings.
7 8 9 10 11 |
# File 'lib/env_manifest/settings.rb', line 7 def initialize(file_path) @file_path = file_path load_defaults validate end |
Instance Attribute Details
#file_path ⇒ Object (readonly)
Returns the value of attribute file_path.
5 6 7 |
# File 'lib/env_manifest/settings.rb', line 5 def file_path @file_path end |
Instance Method Details
#[](key) ⇒ Object
13 14 15 16 |
# File 'lib/env_manifest/settings.rb', line 13 def [](key) val = ENV[key] return val end |