Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattetti/sdruby-raffle
Tiny Ruby gem to pick raffle winners
https://github.com/mattetti/sdruby-raffle
Last synced: about 11 hours ago
JSON representation
Tiny Ruby gem to pick raffle winners
- Host: GitHub
- URL: https://github.com/mattetti/sdruby-raffle
- Owner: mattetti
- License: mit
- Created: 2008-03-07T02:37:31.000Z (almost 17 years ago)
- Default Branch: master
- Last Pushed: 2008-04-25T02:52:47.000Z (almost 17 years ago)
- Last Synced: 2024-11-27T13:13:37.552Z (2 months ago)
- Language: Ruby
- Homepage: http://sdruby.com
- Size: 105 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: History.txt
- License: License.txt
Awesome Lists containing this project
README
SDruby Raffle Gem
=================Usage:
------require 'lib/raffle'
>> raffle.participants
=> ["Patrick", "Ryan", "Jordan", "Tom", "Chris", "Rob", "Sam", "Matt"]>> raffle.pick_a_winner
=> "Tom">> raffle.participants
=> ["Patrick", "Ryan", "Jordan", "Chris", "Rob", "Sam", "Matt"](note that tom has been removed from the participants list)
use #teasing_mode to go though the entire list of losers before giving away the winner's name