From e1795b3f6f397dfb9ea0d8086598f560e82aeb46 Mon Sep 17 00:00:00 2001 From: Shantel Date: Mon, 14 Jul 2025 13:17:39 -0400 Subject: [PATCH] Running Ruby Code --- app.rb | 29 ++++++----------------------- 1 file changed, 6 insertions(+), 23 deletions(-) diff --git a/app.rb b/app.rb index a6794e05..8863f54e 100644 --- a/app.rb +++ b/app.rb @@ -1,23 +1,6 @@ -# 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] - -# def add - -# end -# # 1 + 1 -# puts add + add - -def add num1, num2 - puts num1 - puts num2 - num1 + num2 -end - -puts add(1,3) + add(2,2) \ No newline at end of file +# app.rb +puts("Hello World!") +# app.rb +print "Pass this test, please." +# app.rb +p [1, 2, 3]