DefinableSetting
Mixin trait for adding convenience vocabulary associated with applying a setting to a configuration item.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait InputKey[A1]class SettingKey[A1]
- Self type
-
DefinableSetting[A1]
Members list
Value members
Concrete methods
From the given Settings, extract the value bound to this key.
From the given Settings, extract the value bound to this key.
Attributes
Like option, but with a call-by-name parameter rather than an existing Def.Initialize. Useful when you want to have a value computed when no value is bound to this key.
Like option, but with a call-by-name parameter rather than an existing Def.Initialize. Useful when you want to have a value computed when no value is bound to this key.
Value parameters
- or
-
by-name expression evaluated when a value is needed.
Attributes
- Returns
-
currently bound setting value, or the result of
orif unbound.
Creates an Def.Initialize with value scala.None if there was no previous definition of this key, and scala.Some(value) if a definition exists. Useful for when you want to use the ''existence'' of one setting in order to define another setting.
Creates an Def.Initialize with value scala.None if there was no previous definition of this key, and scala.Some(value) if a definition exists. Useful for when you want to use the ''existence'' of one setting in order to define another setting.
Attributes
- Returns
-
currently bound value wrapped in
Initialize[Some[T]], orInitialize[None]if unbound.
Creates an Def.Initialize with value bound to this key, or returns i parameter if unbound.
Creates an Def.Initialize with value bound to this key, or returns i parameter if unbound.
Value parameters
- i
-
value to return if this setting doesn't have a value.
Attributes
- Returns
-
currently bound setting value, or
iif unbound.
In addition to creating Def.setting(...), this captures the source position.
In addition to creating Def.setting(...), this captures the source position.
Attributes
Internally used function for setting a value along with the .sbt file location where it is defined.
Internally used function for setting a value along with the .sbt file location where it is defined.