Skip to content

Instantly share code, notes, and snippets.

@RSchneider94
Created July 12, 2018 14:37
Show Gist options
  • Save RSchneider94/8954623354ad54316c24d39836fc0357 to your computer and use it in GitHub Desktop.
Save RSchneider94/8954623354ad54316c24d39836fc0357 to your computer and use it in GitHub Desktop.
My third Ruby on Rails Program
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