Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enum genres: String {
- case One = "One", Two = "Two", Three = "Three", Four = "Four", Five = "Five"
- func test() -> String {
- return "This is a string with the value of \(self.rawValue)"
- }
- }
- var myGenre:genres = .Two
- println("\(myGenre.test())")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement