We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08a39d0 commit 24e290aCopy full SHA for 24e290a
Sources/JSONConfig/JSONConfig.swift
@@ -9,14 +9,13 @@ import PerfectLib
9
10
11
public class JSONConfig {
12
- public static let shared = JSONConfig()
13
private var json:[String:Any]?
14
15
/**
16
Initialze the configuration with json at source. The json is first populated by the json at defaults (if it exists)
17
Note that the defaults are not deeply updated. Just the top level of keys are updated
18
*/
19
- public func initialize(withJsonAt source:String, defaultsInJsonAt defaults:String? = nil) {
+ public init(withJsonAt source:String, defaultsInJsonAt defaults:String? = nil) {
20
self.json = nil
21
if let defaults = defaults {
22
self.read(jsonAt: defaults)
0 commit comments