diff --git a/hello_world.rb b/hello_world.rb index 81d8bfe..c66ac8a 100644 --- a/hello_world.rb +++ b/hello_world.rb @@ -1,7 +1,13 @@ class HelloWorld - def self.hello - # - # YOUR CODE GOES HERE - # + def initialize(name) + @name = name.capitalize end -end + def sayHi + puts "Hello #{@name}!" + end + hello = HelloWorld.new("World") + hello.sayHi +end + + +