Advertisement
Guest User

Untitled

a guest
Apr 27th, 2015
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. enum genres: String {
  2. case One = "One", Two = "Two", Three = "Three", Four = "Four", Five = "Five"
  3.  
  4. func test() -> String {
  5. return "This is a string with the value of \(self.rawValue)"
  6. }
  7. }
  8.  
  9. var myGenre:genres = .Two
  10. println("\(myGenre.test())")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement