Skip to content

Commit 5e8b7c8

Browse files
committed
Remove redundant lines from main.rb
1 parent 40b245b commit 5e8b7c8

File tree

1 file changed

+0
-9
lines changed
  • katas/4-gilded-traffic-light/source

1 file changed

+0
-9
lines changed

katas/4-gilded-traffic-light/source/main.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,8 @@
66
source 'https://rubygems.org'
77

88
gem 'minitest'
9-
gem 'activesupport', '~> 7.0'
109
end
1110

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-
2011
class TrafficLightSystem
2112
def initialize
2213
@lights = [

0 commit comments

Comments
 (0)