From 64d30ce991fc7cb472626989e7fab46bc5e71819 Mon Sep 17 00:00:00 2001 From: Kyle Housel Date: Mon, 14 Jul 2025 09:24:38 -0400 Subject: [PATCH 1/2] Run Ruby code --- app.rb | 33 +++++++++++++-------------------- 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/app.rb b/app.rb index a6794e05..e67affc0 100644 --- a/app.rb +++ b/app.rb @@ -1,23 +1,16 @@ -# pp [{ id: 1, hello: "World" }, -# { id: 2, hello: "Ruby" }, -# { id: 3, hello: "Moon" }, -# { id: 4, hello: "Learner" }] +pp [{ id: 1, hello: "World" }, + { id: 2, hello: "Ruby" }, + { id: 3, hello: "Moon" }, + { id: 4, hello: "Learner" }] -# p [1,2,3] -# puts "Hello World!" -# print "Pass this test, please." -# p [1,2,3] +p [{ id: 1, hello: "World" }, +{ id: 2, hello: "Ruby" }, +{ id: 3, hello: "Moon" }, +{ id: 4, hello: "Learner" }] -# def add - -# end -# # 1 + 1 -# puts add + add +p [1,2,3] +pp [1, 2, 3] +puts [1, 2, 3] -def add num1, num2 - puts num1 - puts num2 - num1 + num2 -end - -puts add(1,3) + add(2,2) \ No newline at end of file +puts "Hello World!" +print "Pass this test, please." From c150f6af453b6e221129bc014f3028c64e63eb28 Mon Sep 17 00:00:00 2001 From: Kyle Housel Date: Mon, 14 Jul 2025 09:27:20 -0400 Subject: [PATCH 2/2] Run Ruby code --- app.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.rb b/app.rb index e67affc0..d8edd2aa 100644 --- a/app.rb +++ b/app.rb @@ -14,3 +14,5 @@ puts "Hello World!" print "Pass this test, please." + +puts "Hi Steven"