Created
October 14, 2014 08:59
-
-
Save xpqz/8d7cb3761d39bfbce8fd 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
enum Grade: Printable { | |
case UKTrad(adjectival: Adjectival, technical: String?) | |
var description: String { | |
switch self { | |
case let UKTrad(adjectival, technical): | |
if technical == nil { | |
return adjectival.description | |
} | |
return "\(adjectival.description) \(technical!)" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment