Skip to content

Instantly share code, notes, and snippets.

@GE-N
Created August 16, 2015 08:50
Show Gist options
  • Save GE-N/7402a757b9629d74c90d to your computer and use it in GitHub Desktop.
Save GE-N/7402a757b9629d74c90d to your computer and use it in GitHub Desktop.
BDD#3 credit class
class Credit {
var count: Int {
set {
// save newValue of credits to somewhere.
}
get {
return // credits value saved.
}
}
func decrease() {
var credit = self.count
self.count = credit - 1
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment