lib/weather_cli/cli.rb
#method used to start the program
method used to start the program
method used to start the program
def more_info(forecast_array)
    puts ""
    puts "Type in 1-6 to get a detailed report for one these dates"
    input = gets.strip.downcase
    if input == "exit"
      exit
    else
      if input.to_i >= 1 && input.to_i <= 6
        day = forecast_array[input.to_i-1]
        print_weather_day(day)
      else
        puts "Wrong number entered, please enter number 1-6"
        more_info
      end
    end
  end
def more_info ( forecast_array ) puts "" puts "Type in 1-6 to get a detailed report for one these dates" input = gets . strip . downcase if input == "exit" exit else if input . to_i >= 1 && input . to_i <= 6 day = forecast_array [ input . to_i - 1 ] print_weather_day ( day ) else puts "Wrong number entered, please enter number 1-6" more_info end end end
method used to start the program
method used to start the program
forecast_array
<not_specific>