lib/cli.rb
#method to ask for another state input
method to ask for another state input
method to ask for another state input
def ask_another
        puts "Choose another state?: Y/N"
        response = gets.upcase.strip
        sleep(0.3)
        system "clear"
        if response == "Y"
            ask_state
        elsif response == "N" || response == "EXIT"
            exit
        else response != "Y" || response != "N"
            puts "------------------------------"
            puts "Please input 'Y' or 'N' only."
            ask_another
        end
    end
def ask_another puts "Choose another state?: Y/N" response = gets . upcase . strip sleep ( 0.3 ) system "clear" if response == "Y" ask_state elsif response == "N" || response == "EXIT" exit else response != "Y" || response != "N" puts "------------------------------" puts "Please input 'Y' or 'N' only." ask_another end end
method to ask for another state input
method to ask for another state input