Method: SettingsReader::Resolvers::Env#resolve
- Defined in:
- lib/settings_reader/resolvers/env.rb
#resolve(value, _path) ⇒ Object
Return value of environment variable by removing ‘env://` prefix and calling `ENV`
15 16 17 18 |
# File 'lib/settings_reader/resolvers/env.rb', line 15 def resolve(value, _path) env_path = value.to_s.delete_prefix(IDENTIFIER) ENV[env_path] end |