Parent

Methods

Included Modules

Tournament::Possibility

Holds information about an Tournament::Entry’s possibilities for remaining games in a tournament.

Attributes

times_champ[RW]

(Not documented)

max_score[RW]

(Not documented)

min_rank[RW]

(Not documented)

champs[R]

(Not documented)

entry[R]

(Not documented)

Public Class Methods

new(entry) click to toggle source

(Not documented)

    # File lib/tournament/possibility.rb, line 7
 7:   def initialize(entry)
 8:     @times_champ = 0
 9:     @max_score = 0
10:     @min_rank = 1_000_000_000
11:     @champs = {}
12:     @entry = entry
13:   end

Public Instance Methods

<=>(other) click to toggle source

(Not documented)

    # File lib/tournament/possibility.rb, line 14
14:   def <=>(other)
15:     (other.times_champ <=> self.times_champ).nonzero? ||
16:       (self.min_rank <=> other.min_rank).nonzero? ||
17:       other.max_score <=> self.max_score
18:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.