From f3f5a2a2caefdbd55aed51405919e5e50c7f1420 Mon Sep 17 00:00:00 2001 From: Jimmy Date: Sat, 17 Apr 2021 05:08:35 +0000 Subject: [PATCH] Done. --- lib/example.rb | 15 +++++++++++++-- lib/greeting.rb | 9 +++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 lib/greeting.rb diff --git a/lib/example.rb b/lib/example.rb index de7d2cbf..6ff8738d 100644 --- a/lib/example.rb +++ b/lib/example.rb @@ -1,5 +1,5 @@ # Use this space to code along with the readme - +def say_hello_world_ten_times phrase = "Hello World!" puts phrase puts phrase @@ -10,4 +10,15 @@ puts phrase puts phrase puts phrase -puts phrase \ No newline at end of file +puts phrase +end + +say_hello_world_ten_times +say_hello_world_ten_times + +def greeting + puts "hello Jimmy" + +end + +greeting diff --git a/lib/greeting.rb b/lib/greeting.rb new file mode 100644 index 00000000..fd1fef5c --- /dev/null +++ b/lib/greeting.rb @@ -0,0 +1,9 @@ +def greeting + puts "Hello world" +end + +greeting +greeting +greeting +greeting +greeting