Config
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Creates a
See moreDictionary
from all of the keys available in all layers of theConfig
object.Each key is paired with the value from the topmost layer that has that key. The dictionary returns the same values for each key as one would get from theConfig
’sget(key:) -> AnyObject?
method. If you don’t need the underlying layers of aConfig
once it has been assembled, this can be a performance gain, as accessing a native SwiftDictionary
is likely to be faster thanConfig.get
.Declaration
Swift
public func flatten() -> [String: AnyObject]
-
Adds the given
key
andvalue
to theoverrides
layer, which is always preferred to other layers. This can be useful in a multi-stage initialization process if some initialized object must be passed to a subsequent initializer through aConfig
object (seeIConfigInitable
,IConfigRepresentable
,IConfigurableBuilder
, et. al).Declaration
Swift
public mutating func set(key:String, value:AnyObject?)
-
Undocumented
-
Finds the topmost layer containing
key
and returns it. If no layers contained the key, this method returnsnil
.Declaration
Swift
public func findLayerWithValueForKey(key:String) -> IConfigLayer?