We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40b245b commit 5e8b7c8Copy full SHA for 5e8b7c8
katas/4-gilded-traffic-light/source/main.rb
@@ -6,17 +6,8 @@
6
source 'https://rubygems.org'
7
8
gem 'minitest'
9
- gem 'activesupport', '~> 7.0'
10
end
11
12
-# An unsightly blob of procedural code that represents a working traffic light system.
13
-# - Only one direction can be green or amber at a time.
14
-# - Pedestrians can walk in a direction only when it’s red.
15
-# traffic_light_system.rb
16
-# Deliberately messy, procedural-style code that:
17
-# 1) Updates traffic lights by a single second each time #run is called.
18
-# 2) Uses inline logic for everything rather than neatly separated methods.
19
-
20
class TrafficLightSystem
21
def initialize
22
@lights = [
0 commit comments