Skip to content

Instantly share code, notes, and snippets.

@dorianmariefr
Created January 5, 2023 15:16
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
diff --git a/helloworld.rb b/helloworld.rb
index 4545ae5..fbe9b63 100644
--- a/helloworld.rb
+++ b/helloworld.rb
@@ -25,12 +25,13 @@ class Helloworld
puts "Hi from:"
end
- def say_hello(person, location)
- puts "#{person}, #{location}"
+ def say_hello(person, location, flag)
+ puts "🐦 #{person} 📌 #{location} #{flag} : https://twitter.com/#{person[1..]}"
end
end
hi = Helloworld.new
-hi.say_hello("@alterisian", "Málaga, Spain")
+hi.say_hello("@alterisian", "Málaga, Spain", "🇪🇸")
+hi.say_hello("@dorianmariefr", "Paris, France", "🇫🇷")
#TODO - January - add your call to hi.say_hello above this line. Keep this line.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment