From 07e25a4817fe660abef249e2c6c3411f02b9be57 Mon Sep 17 00:00:00 2001 From: Mohamed Elkhaloui Date: Mon, 2 Nov 2020 01:12:34 +0000 Subject: [PATCH] Done. --- README.md | 2 +- greeting.rb | 15 +++++++++++++++ lib/example.rb | 26 ++++++++++++++------------ 3 files changed, 30 insertions(+), 13 deletions(-) create mode 100644 greeting.rb diff --git a/README.md b/README.md index 2e2a248..c17f470 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Methods in Ruby +learn# Methods in Ruby ## Overview diff --git a/greeting.rb b/greeting.rb new file mode 100644 index 0000000..3701da0 --- /dev/null +++ b/greeting.rb @@ -0,0 +1,15 @@ +def greeting + puts "Hello World" +end + + +greeting +greeting +greeting +greeting +greeting +greeting +greeting +greeting +greeting +greeting \ No newline at end of file diff --git a/lib/example.rb b/lib/example.rb index de7d2cb..bb25b54 100644 --- a/lib/example.rb +++ b/lib/example.rb @@ -1,13 +1,15 @@ -# Use this space to code along with the readme +def say_hello_World_ten_times + phrase = "Hello World!" + puts phrase + puts phrase + puts phrase + puts phrase + puts phrase + puts phrase + puts phrase + puts phrase + puts phrase + puts phrase +end -phrase = "Hello World!" -puts phrase -puts phrase -puts phrase -puts phrase -puts phrase -puts phrase -puts phrase -puts phrase -puts phrase -puts phrase \ No newline at end of file +say_hello_World_ten_times \ No newline at end of file