Skip to content

Instantly share code, notes, and snippets.

@manveru
Forked from jashkenas/lottery.coffee
Created July 29, 2010 03:53
Show Gist options
  • Save manveru/497186 to your computer and use it in GitHub Desktop.
Save manveru/497186 to your computer and use it in GitHub Desktop.
LotteryTicket =
get_picks: -> @picks
set_picks: (@picks) ->
get_purchased: -> @purchase
set_purchased: (@purchased) ->
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;
}
};
class LotteryTicket
attr_accessor :picks, :purchased
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment