lib/pokemon_info_finder/cli.rb
def names
        input = nil
        while input != "back"
            puts ""
            puts "Please enter name of Pokemon you want more information on, \"back\" to go back:"
            input = gets.strip.downcase


            #gets the name and gives back more information about it
            if @pokemon_name_list.include?(input)
                pokemon_more_info(input)
            else
                puts ""
                puts "* Please enter valid Pokemon name *"
            end
        end
    end
#gets name and gives info on that name
gets name and gives info on that name
gets name and gives info on that name
def names
        input = nil
        while input != "back"
            puts ""
            puts "Please enter name of Pokemon you want more information on, \"back\" to go back:"
            input = gets.strip.downcase
            if @pokemon_name_list.include?(input)
                pokemon_more_info(input)
            else
                puts ""
                puts "* Please enter valid Pokemon name *"
            end
        end
    end
def names input = nil while input != "back" puts "" puts "Please enter name of Pokemon you want more information on, \"back\" to go back:" input = gets . strip . downcase if @pokemon_name_list . include? ( input ) pokemon_more_info ( input ) else puts "" puts "* Please enter valid Pokemon name *" end end end
gets name and gives info on that name
gets name and gives info on that name
#gets the name and gives back more information about it