From 4e74df26f6e47099e2dd791456817d52d8667cd3 Mon Sep 17 00:00:00 2001 From: suliman Date: Thu, 26 May 2016 14:22:35 +0200 Subject: [PATCH] suli --- hello_world.rb | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/hello_world.rb b/hello_world.rb index 81d8bfe..c2fa421 100644 --- a/hello_world.rb +++ b/hello_world.rb @@ -1,7 +1,15 @@ class HelloWorld def self.hello - # - # YOUR CODE GOES HERE - # + class HelloWorld + def initialize(name) + @name = name.capitalize + end + def sayHi + puts "Hello #{@name}!" + end +end + +hello = HelloWorld.new("World") +hello.sayHi end end