Last active
February 1, 2018 09:23
-
-
Save gonzalezreal/76e34eaef20ee74d19dd to your computer and use it in GitHub Desktop.
Revisions
-
gonzalezreal revised this gist
Jun 6, 2014 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,12 +3,12 @@ class FileManager { static var instance = FileManager() } class var defaultManager : FileManager { return StaticInstance.instance } } var mgr1 = FileManager.defaultManager var mgr2 = FileManager.defaultManager let mustBeTrue = mgr1 === mgr2 -
gonzalezreal created this gist
Jun 6, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ class FileManager { struct StaticInstance { static var instance = FileManager() } class var instance : FileManager { return StaticInstance.instance } } var mgr1 = FileManager.instance var mgr2 = FileManager.instance let mustBeTrue = mgr1 === mgr2