From c89c4c10058d31d32ce21673834f9ae91cd032cf Mon Sep 17 00:00:00 2001 From: mardi yahia Date: Thu, 26 May 2016 10:59:00 +0200 Subject: [PATCH 1/7] almardi --- hello_world.rb | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/hello_world.rb b/hello_world.rb index 81d8bfe..6cdb7c8 100644 --- a/hello_world.rb +++ b/hello_world.rb @@ -1,7 +1,16 @@ class HelloWorld def self.hello - # - # YOUR CODE GOES HERE - # - end -end + class HelloWorld + def self.hello + class HelloWorld + def initialize(name) + @name = name.capitalize + end + def sayHi + puts "Hello #{@name}!" + end +endhello = HelloWorld.new("World") +hello.sayHi + end +end + From 9d98f34689134ad700f9e70961465f19a24a6657 Mon Sep 17 00:00:00 2001 From: mardi yahia Date: Thu, 2 Jun 2016 14:11:41 +0200 Subject: [PATCH 2/7] after test --- hello_world.rb | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/hello_world.rb b/hello_world.rb index 6cdb7c8..5eb56f9 100644 --- a/hello_world.rb +++ b/hello_world.rb @@ -1,16 +1,11 @@ class HelloWorld - def self.hello - class HelloWorld - def self.hello - class HelloWorld - def initialize(name) - @name = name.capitalize - end - def sayHi - puts "Hello #{@name}!" - end -endhello = HelloWorld.new("World") -hello.sayHi - end + def initialize(name) + @name = name.capitalize + end + def sayHi + puts "Hello #{@name}!" + end end - + +hello = HelloWorld.new("World") +hello.sayHi From 894f251fd74d4b1dcdea557f2faad44b8faf0147 Mon Sep 17 00:00:00 2001 From: ELmardi2 Date: Thu, 2 Jun 2016 14:26:06 +0200 Subject: [PATCH 3/7] new change --- hello_world.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/hello_world.rb b/hello_world.rb index 5eb56f9..1cbe303 100644 --- a/hello_world.rb +++ b/hello_world.rb @@ -9,3 +9,4 @@ def sayHi hello = HelloWorld.new("World") hello.sayHi +. From 7de76a64fc7b64ff705a1cff27af7e0c9fadeea4 Mon Sep 17 00:00:00 2001 From: ELmardi2 Date: Thu, 2 Jun 2016 14:27:15 +0200 Subject: [PATCH 4/7] again --- hello_world.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hello_world.rb b/hello_world.rb index 1cbe303..e43bdc1 100644 --- a/hello_world.rb +++ b/hello_world.rb @@ -9,4 +9,8 @@ def sayHi hello = HelloWorld.new("World") hello.sayHi + + + + . From b064466cedcbe3bcce8569ca1b52eaf9242ecb2e Mon Sep 17 00:00:00 2001 From: ELmardi2 Date: Thu, 2 Jun 2016 14:48:06 +0200 Subject: [PATCH 5/7] test a --- hello_world.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/hello_world.rb b/hello_world.rb index e43bdc1..5eb56f9 100644 --- a/hello_world.rb +++ b/hello_world.rb @@ -9,8 +9,3 @@ def sayHi hello = HelloWorld.new("World") hello.sayHi - - - - -. From 73eccfd592c1d5fe030563d60da6853a2ae54cc9 Mon Sep 17 00:00:00 2001 From: ELmardi2 Date: Thu, 2 Jun 2016 15:08:13 +0200 Subject: [PATCH 6/7] test2 --- hello_world.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/hello_world.rb b/hello_world.rb index 5eb56f9..6061e3c 100644 --- a/hello_world.rb +++ b/hello_world.rb @@ -9,3 +9,4 @@ def sayHi hello = HelloWorld.new("World") hello.sayHi + From a4abd26f1182d5591a96cfdcc5245b4982e92928 Mon Sep 17 00:00:00 2001 From: ELmardi2 Date: Thu, 2 Jun 2016 15:12:13 +0200 Subject: [PATCH 7/7] test again --- hello_world.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hello_world.rb b/hello_world.rb index 6061e3c..c66ac8a 100644 --- a/hello_world.rb +++ b/hello_world.rb @@ -5,8 +5,9 @@ def initialize(name) def sayHi puts "Hello #{@name}!" end + hello = HelloWorld.new("World") + hello.sayHi end -hello = HelloWorld.new("World") -hello.sayHi +