Skip to content

Instantly share code, notes, and snippets.

@paulw11
Created July 26, 2015 23:43
Show Gist options
  • Save paulw11/2010f0474429a679a0b9 to your computer and use it in GitHub Desktop.
Save paulw11/2010f0474429a679a0b9 to your computer and use it in GitHub Desktop.
func typeAsString() -> String {
var retVal:String
println("Checking")
switch self.brickType {
case .None:
retVal="None"
case .Green:
retVal="Green"
case .Yellow:
retVal="Yellow"
case .Orange:
retVal="Orange"
default:
retVal="What the?"
}
return retVal
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment