Created
February 2, 2015 19:53
-
-
Save george-carlin/4a4a7b3b0dfdde32506f to your computer and use it in GitHub Desktop.
Return demo
This file contains hidden or 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 implicit_return | |
"I <3 Ruby" | |
end | |
def name_of_germany_in(language) | |
if language == "German" | |
"Deutschland" | |
elsif language == "English" | |
"Germany" | |
elsif language == "French" | |
"Allemagne" | |
end | |
end | |
def divide(first, second) | |
return "Can't divide!" if second == 0 | |
first / second | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment