File tree Expand file tree Collapse file tree 8 files changed +28
-47
lines changed
compiled_starters/ruby/app
starter_templates/ruby/code/app Expand file tree Collapse file tree 8 files changed +28
-47
lines changed Original file line number Diff line number Diff line change 1+ require "socket"
2+
13# You can use print statements as follows for debugging, they'll be visible when running tests.
2- $stderr . puts "Logs from your program will appear here!"
4+ print ( "Logs from your program will appear here!" )
35
4- # Uncomment this block to pass the first stage
5- # puts "Implement code here!"
6+ # TODO: Uncomment the code below to pass the first stage
7+ #
8+ # server = TCPServer.new("localhost", 4221)
9+ # client_socket, client_address = server.accept
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- # Uncomment this block to pass the first stage
2- # puts "Implement code here!"
1+ require "socket"
2+
3+ server = TCPServer . new ( "localhost" , 4221 )
4+ client_socket , client_address = server . accept
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- @@ -1,5 +1,2 @@
1+ @@ -1,9 +1,4 @@
2+ require "socket"
3+
24- # You can use print statements as follows for debugging, they'll be visible when running tests.
3- - $stderr.puts "Logs from your program will appear here!"
5+ - print( "Logs from your program will appear here!")
46-
5- # Uncomment this block to pass the first stage
6- # puts "Implement code here!"
7- \ No newline at end of file
7+ - # TODO: Uncomment the code below to pass the first stage
8+ - #
9+ - # server = TCPServer.new("localhost", 4221)
10+ - # client_socket, client_address = server.accept
11+ + server = TCPServer.new("localhost", 4221)
12+ + client_socket, client_address = server.accept
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ require "socket"
2+
13# You can use print statements as follows for debugging, they'll be visible when running tests.
2- $stderr . puts "Logs from your program will appear here!"
4+ print ( "Logs from your program will appear here!" )
35
4- # Uncomment this block to pass the first stage
5- # puts "Implement code here!"
6+ # TODO: Uncomment the code below to pass the first stage
7+ #
8+ # server = TCPServer.new("localhost", 4221)
9+ # client_socket, client_address = server.accept
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments