Skip to content

Instantly share code, notes, and snippets.

@george-carlin
Created February 2, 2015 19:53
Show Gist options
  • Save george-carlin/4a4a7b3b0dfdde32506f to your computer and use it in GitHub Desktop.
Save george-carlin/4a4a7b3b0dfdde32506f to your computer and use it in GitHub Desktop.
Return demo
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