Sha256: 5e2034dcc1a030b9fddd95b4cb17c62f6b761a6d3ee8561bcd6924a4b37b8c82

Contents?: true

Size: 205 Bytes

Versions: 7

Compression:

Stored size: 205 Bytes

Contents

class Team
	attr_accessor :number

	TEAMS = { spec: 0, blue: 1, red: 2, yell: 3, gren: 4 }

	def initialize(sym)
		@number = TEAMS[sym] || 0
	end

	def to_s
		TEAMS.key(@number).to_s
	end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
qwtf_discord_bot-0.3.3 lib/team.rb
qwtf_discord_bot-0.3.2 lib/team.rb
qwtf_discord_bot-0.3.1 lib/team.rb
qwtf_discord_bot-0.3.0 lib/team.rb
qwtf_discord_bot-0.2.2 lib/team.rb
qwtf_discord_bot-0.2.1 lib/team.rb
qwtf_discord_bot-0.2.0 lib/team.rb