Puts the write function as public

multistore
Laurent 2 years ago
parent 375feb94c1
commit e27eec0af4
  1. 2
      LeStorage/MicroStorage.swift

@ -38,7 +38,7 @@ public class MicroStorage<T : MicroStorable> {
self.write()
}
func write() {
public func write() {
do {
let jsonString: String = try self.item.jsonString()
let _ = try FileUtils.writeToDocumentDirectory(content: jsonString, fileName: T.fileName)

Loading…
Cancel
Save