EnvironmentProvider

A provider which will look for environment variables based on a _transformed_ version of their name.

This transformation replaces all . with a character of your choice (default is __) and also ensures all parts of the name are upper-case.

Constructors

this
this(string dotReplace)

* Constructs a new environment * provider and uses the given * token to replace all occurrences of . in names

this
this()

* Constructs a new environment provider and uses the __ token as the replacement token

Members

Functions

provideImpl
bool provideImpl(string n, string v)

Implementation

Inherited Members

From Provider

provideImpl
bool provideImpl(string n, string v_out)

The implementation method for a provider. This must return true when an entry by the name of n is found and then set its associated value via v_out. Otherwise, false must be returned.

provide
Optional!(string) provide(string name)

Provides us the value that maps to the given name

Meta