app/models/cli.rb
#----asks user if they want to continue, alter the perameters, or stop
asks user if they want to continue, alter the perameters, or stop
asks user if they want to continue alter the perameters or stop
def suggest_new_possibility?
      puts ""
      puts "Would you like us to suggest a new possibility?"
      puts ""
      puts "1. Yes, give me more."
      puts "2. Yes and I'd like to change my time and location first."
      puts "3. No, I've had enough."
      puts ""
      self.suggest_another = gets.strip
      self.quit if self.suggest_another == "quit"
      if ["1", "2", "3"].all? { |i| self.suggest_another != i}
        self.what_was_that?
        self.suggest_new_possibility?
      end
      self.continue?
    end
def suggest_new_possibility? puts "" puts "Would you like us to suggest a new possibility?" puts "" puts "1. Yes, give me more." puts "2. Yes and I'd like to change my time and location first." puts "3. No, I've had enough." puts "" self . suggest_another = gets . strip self . quit if self . suggest_another == "quit" if [ "1" , "2" , "3" ] . all? { | i | self . suggest_another != i } self . what_was_that? self . suggest_new_possibility? end self . continue? end
asks user if they want to continue, alter the perameters, or stop
asks user if they want to continue alter the perameters or stop