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 moreDictionaryfrom all of the keys available in all layers of theConfigobject.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 aConfigonce it has been assembled, this can be a performance gain, as accessing a native SwiftDictionaryis likely to be faster thanConfig.get.Declaration
Swift
public func flatten() -> [String: AnyObject] -
Adds the given
keyandvalueto theoverrideslayer, 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 aConfigobject (seeIConfigInitable,IConfigRepresentable,IConfigurableBuilder, et. al).Declaration
Swift
public mutating func set(key:String, value:AnyObject?) -
Undocumented
-
Finds the topmost layer containing
keyand returns it. If no layers contained the key, this method returnsnil.Declaration
Swift
public func findLayerWithValueForKey(key:String) -> IConfigLayer?
View on GitHub
Config Struct Reference