Created
July 12, 2018 14:37
-
-
Save RSchneider94/8954623354ad54316c24d39836fc0357 to your computer and use it in GitHub Desktop.
My third Ruby on Rails Program
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 choose_option | |
puts 'Do you like programming? Please, answer with "yes", "no" or "maybe":' | |
usr_option = gets.chomp | |
case usr_option.downcase | |
when 'yes' | |
puts 'Great!' | |
when 'no' | |
puts 'Unbelievable!' | |
when 'maybe' | |
puts 'At least you are giving it a chance!' | |
else | |
puts 'I have no idea what did you mean...' | |
end | |
end | |
choose_option |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment