Created
October 20, 2015 15:53
-
-
Save siakaramalegos/ea3dcda67263353ee8e1 to your computer and use it in GitHub Desktop.
Simple greeting app to show methods
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def greeting name="Sia" | |
puts "Hello #{name}" | |
end | |
def how_you_doing(name1, name2) | |
puts "Hi, I'm #{name1}. How YOU doin', #{name2}?" | |
end | |
greeting("Sia") | |
greeting("Lindsay") | |
new_person = "Alexa" | |
greeting(new_person) | |
another_person = "Aline" | |
greeting(another_person) | |
how_you_doing("Sia", "Bobby") | |
greeting |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment