Sha256: c9880603550a09cd199ed26b96e5c4fdbf67ce292a7f07d43d53f917b6e98aaf
Contents?: true
Size: 458 Bytes
Versions: 3
Compression:
Stored size: 458 Bytes
Contents
# frozen_string_literal: true module SportsManager # Public: A representation of no Team used by next round matches that don't # have a winner set yet. class NilTeam attr_reader :category, :participants def initialize(category:) @category = category @participants = [] end def name '' end def ==(other) return false unless instance_of? other.class category == other.category end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sports-manager-0.0.3 | lib/sports_manager/nil_team.rb |
sports-manager-0.0.2 | lib/sports_manager/nil_team.rb |
sports-manager-0.0.1 | lib/sports_manager/nil_team.rb |