Created
July 26, 2015 23:43
-
-
Save paulw11/2010f0474429a679a0b9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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