Class: Options
- Inherits:
-
Object
- Object
- Options
- Defined in:
- lib/options.rb
Class Method Summary collapse
Class Method Details
.get(path) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/options.rb', line 5 def get(path) env_var = ENV[env_var(path)] return YAML.safe_load(env_var) unless env_var.nil? @options&.dig(*path.split('.')) end |
.set(options) ⇒ Object
12 13 14 |
# File 'lib/options.rb', line 12 def set() @options = end |