Skip to content

Instantly share code, notes, and snippets.

@cadwallion
Created March 15, 2012 01:38
Show Gist options
  • Save cadwallion/2041073 to your computer and use it in GitHub Desktop.
Save cadwallion/2041073 to your computer and use it in GitHub Desktop.
YARDoc *args option documentation
# Rank an array of members in the leaderboard.
#
# @overload rank_members([[member, score], ...])
# Rank an array of members in the leaderboard.
# @param [String] member the member to score
# @param [Fixnum] score the score of member
def rank_members(*members_and_scores)
rank_members_in(@leaderboard_name, *members_and_scores)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment