Created
July 4, 2018 20:22
-
-
Save andrehsouza/6bb5ebe7ae532ecfbb6738653a3a103d to your computer and use it in GitHub Desktop.
This file contains 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 characters
import Foundation | |
protocol DescribeProtocol: class { } | |
extension DescribeProtocol where Self: NSObject { | |
static var objectName: String { | |
return String(describing: self) | |
} | |
} | |
extension NSObject: DescribeProtocol { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment