From 59f837bb66846fa26b0edde49900e6093698f47d Mon Sep 17 00:00:00 2001 From: favorable-enhancer-1011 Date: Sun, 1 Mar 2020 06:21:56 +0000 Subject: [PATCH 1/2] Done. --- lib/introduction.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/introduction.rb b/lib/introduction.rb index 2b78f01..fb344ea 100644 --- a/lib/introduction.rb +++ b/lib/introduction.rb @@ -2,7 +2,9 @@ # the answers. You should ONLY check those answers if you get totally stuck. The important # 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_with_language_optional(name, language = "Ruby") + puts "Hi, my name is #{name} and I am learning to program in #{language}." +end From 7d24bbeb62a66a157960593cc19d1eab89065808 Mon Sep 17 00:00:00 2001 From: favorable-enhancer-1011 Date: Sun, 1 Mar 2020 06:45:42 +0000 Subject: [PATCH 2/2] Done. --- lib/introduction.rb | 102 ++++---------------------------------------- 1 file changed, 8 insertions(+), 94 deletions(-) diff --git a/lib/introduction.rb b/lib/introduction.rb index fb344ea..2ff3ff0 100644 --- a/lib/introduction.rb +++ b/lib/introduction.rb @@ -1,98 +1,12 @@ -# Write your code here. If you get stuck, at the very bottom of this lab we've included -# the answers. You should ONLY check those answers if you get totally stuck. The important -# 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_with_language_optional(name, language = "Ruby") - puts "Hi, my name is #{name} and I am learning to program in #{language}." +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(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 +def introduction_with_language_optional(name, language = "Ruby") + puts "Hi, my name is #{name} and I am learning to program in #{language}." +end