Guest User

Untitled

a guest
May 21st, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. open override var formatKey: String { //overriding non-open var outside of its defining module
  2. get {
  3. if customFormatKey != nil {
  4. return customFormatKey!
  5. }
  6. return String(describing: type(of: self)).components(separatedBy: ".").last!
  7. }
  8. }
Add Comment
Please, Sign In to add comment