Created
July 29, 2010 03:48
-
-
Save jashkenas/497180 to your computer and use it in GitHub Desktop.
This file contains 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
LotteryTicket = | |
get_picks: -> @picks | |
set_picks: (@picks) -> | |
get_purchased: -> @purchase | |
set_purchased: (@purchased) -> |
This file contains 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
var LotteryTicket; | |
LotteryTicket = { | |
get_picks: function() { | |
return this.picks; | |
}, | |
set_picks: function(_a) { | |
this.picks = _a; | |
}, | |
get_purchased: function() { | |
return this.purchase; | |
}, | |
set_purchased: function(_a) { | |
this.purchased = _a; | |
} | |
}; |
This file contains 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
class LotteryTicket | |
def picks; @picks; end | |
def picks=(var); @picks = var; end | |
def purchased; @purchased; end | |
def purchased=(var); @purchased = var; end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment