Skip to content

Instantly share code, notes, and snippets.

@dorianmariecom
Created January 5, 2023 15:16
Show Gist options
  • Save dorianmariecom/929fa5cfb5ea4a537a12b4e5945187d9 to your computer and use it in GitHub Desktop.
Save dorianmariecom/929fa5cfb5ea4a537a12b4e5945187d9 to your computer and use it in GitHub Desktop.
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