Reorder some functions in Configuration.kt
This commit is contained in:
parent
4e90033581
commit
0b3f3907d2
|
@ -51,11 +51,10 @@ object Configuration {
|
|||
}
|
||||
}
|
||||
|
||||
operator fun invoke() = obtained
|
||||
operator fun getValue(ref: Any?, property: KProperty<*>): Boolean = invoke().getValue(ref, property)
|
||||
operator fun <T> setValue(ref: Any?, property: KProperty<*>, value: T) { ModifiableValues[property.name] = { ConfigValueFactory.fromAnyRef(value) } }
|
||||
|
||||
operator fun invoke() = obtained
|
||||
|
||||
private val obtained: Config by lazy {
|
||||
var result: Config = empty()
|
||||
with(file) {
|
||||
|
|
Loading…
Reference in New Issue