From a2c97276fc0550648d6f54016f850a594aa8a481 Mon Sep 17 00:00:00 2001 From: syed zeeshan ali zaidi Date: Thu, 26 May 2016 10:46:37 +0200 Subject: [PATCH] ali --- hello_world.rb | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/hello_world.rb b/hello_world.rb index 81d8bfe..34de036 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