Created
April 20, 2016 02:05
-
-
Save blessingLopes/e4318fa9958a8e1d9d48d9266832ab25 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
public protocol Selfie: CustomStringConvertible {} | |
extension Selfie { | |
var description: String { | |
let mirror = Mirror(reflecting: self) | |
return "\(mirror.subjectType)( \(mirror.children.map({ "\($0!): \($1) "}).joinWithSeparator(", ")))" | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment