From 62c1810538e2b66082588b1caad17c0d94415c68 Mon Sep 17 00:00:00 2001 From: suliman Date: Thu, 26 May 2016 10:51:54 +0200 Subject: [PATCH] Suliman addition --- hello_world.rb | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/hello_world.rb b/hello_world.rb index 81d8bfe..b83ed4c 100644 --- a/hello_world.rb +++ b/hello_world.rb @@ -1,7 +1,11 @@ -class HelloWorld - def self.hello - # - # YOUR CODE GOES HERE - # + class HelloWorld + def initialize(name) + @name = name.capitalize end -end + def sayHi + puts "Hello #{@name}!" + end +end + +hello = HelloWorld.new("suliman") +hello.sayHi