Module: Faker::Team

Extended by:
Team, ModuleUtils
Included in:
Team
Defined in:
lib/team_faker.rb

Constant Summary collapse

COLORS =
k %w[Red Black Silver Magenta Green Blue White Fuschia]
ADJECTIVES =
k %w[Angry Awesome Mighty Atomic Screaming Scorching Slick Big Giant Speedy Red\ Hot Lil' Rockin' Extreme]
ANIMALS =
k %w[Hawks Honeybadgers Mantis\ Shrimps Anteaters Panthers Wolves Lions Eagles Wolverines Gators Scorpions Monkeys Weasels]
DISASTERS =
k %w[Tornados Hurricanes Lightning Thunder Backdraft Fire Firestorms Flames]
WEAPONS =
k %w[Bazookas Machetes Machine\ Guns Daggers Rockets]
OTHER =
k %w[Slayers Bombers Demons Angels X-treme Maniacs Annihilators Rage Bruisers]

Instance Method Summary collapse

Instance Method Details

#nameObject



8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/team_faker.rb', line 8

def name
  case rand(9)
  when 0 then "#{color} #{animal}"
  when 1 then "#{adjective} #{animal}"
  when 2 then "#{adjective} #{color} #{animal}"
  when 3 then "#{color} #{other}"
  when 4 then "#{adjective} #{other}"
  when 5 then "#{adjective} #{color} #{other}"       
  when 7 then "#{color} #{disaster}"
  when 6 then "#{adjective} #{disaster}"
  when 7 then "#{color} #{weapon}"
  when 8 then "#{adjective} #{weapon}"
  end
end