lib/recipe_cli/cli.rb
def other_options
    puts "\nWould you like to see another recipe?\nPlease enter 'Yes' or 'No':"

    input = ""
    while input
      input = gets.strip.upcase
      case input
      when "YES"
        return true
      when "NO"
        puts "\nEnjoy your meal!"
        return false
      else
        puts "\nPlease enter 'Yes' or 'No'."
      end
    end
  end
#prompt user for other options; will take in yes/no and either loop through or exit function and call leave method
prompt user for other options; will take in yes/no and either loop through or exit function and call leave method
prompt user for other options ; will take in yes / no and either loop through or exit function and call leave method
def other_options
    puts "\nWould you like to see another recipe?\nPlease enter 'Yes' or 'No':"
    input = ""
    while input
      input = gets.strip.upcase
      case input
      when "YES"
        return true
      when "NO"
        puts "\nEnjoy your meal!"
        return false
      else
        puts "\nPlease enter 'Yes' or 'No'."
      end
    end
  end
def other_options puts "\nWould you like to see another recipe?\nPlease enter 'Yes' or 'No':" input = "" while input input = gets . strip . upcase case input when "YES" return true when "NO" puts "\nEnjoy your meal!" return false else puts "\nPlease enter 'Yes' or 'No'." end end end
prompt user for other options; will take in yes/no and either loop through or exit function and call leave method
prompt user for other options ; will take in yes / no and either loop through or exit function and call leave method