Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Simple greeting app to show methods
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