Skip to content

Instantly share code, notes, and snippets.

@czarneckid
Created January 23, 2011 18:11
Show Gist options
  • Save czarneckid/792290 to your computer and use it in GitHub Desktop.
Save czarneckid/792290 to your computer and use it in GitHub Desktop.
Scenario 4
ruby-1.8.7-p302 > total_money_lb.change_score_for('DavidCzarnecki', -8)
=> "7"
ruby-1.8.7-p302 > total_money_lb.change_score_for('ChristianArca', 16)
=> "23"
ruby-1.8.7-p302 > total_money_lb.leaders(1)
=> [{:member=>"ChristianArca", :score=>"23", :rank=>1}, {:member=>"DavidCzarnecki", :score=>"7", :rank=>2}]
ruby-1.8.7-p302 >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment