From abefff4c93432f0c5d4d42a81d44aaf357cf8e98 Mon Sep 17 00:00:00 2001 From: QIuyan Peng Date: Thu, 27 Feb 2020 17:28:01 +0000 Subject: [PATCH] Done. --- lib/introduction.rb | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/introduction.rb b/lib/introduction.rb index 2b78f01..4be5a78 100644 --- a/lib/introduction.rb +++ b/lib/introduction.rb @@ -3,8 +3,17 @@ # thing is NOT to "complete labs," the important thing is to learn the skills you need # in order to complete the rest of this course and be ready for the next course! - - +def introduction (name) + puts "Hi, my name is #{name}." +end + + def introduction_with_language(name, language) + puts "Hi, my name is #{name} and I am learning to program in #{language}." + end + +def introduction_with_language_optional(name, language = "Ruby") + puts "Hi, my name is #{name} and I am learning to program in #{language}." + end