lib/cli.rb
def artist_menu
    
        puts "Please select a number from the list present to learn more about an artist".black.on_white
        user_input=gets.chomp
        
        if !user_input.to_i.between?(1,Artist.all.count)
            puts "Please choose a valid number".black.on_white
            list_artist
            artist_menu
        else 
            artist=Artist.all[user_input.to_i - 1]
            artist_details(artist)
            continue_exploring_gallery(artist)
        end 

    end
#ARTIST:Asks User to make a selection from list, checks validity of selecetion, and, if valid, calls on artist_details 
Asks User to make a selection from list, checks validity of selecetion, and, if valid, calls on artist_details
Asks User to make a selection from list checks validity of selecetion and if valid calls on artist_details
def artist_menu
        puts "Please select a number from the list present to learn more about an artist".black.on_white
        user_input=gets.chomp
        if !user_input.to_i.between?(1,Artist.all.count)
            puts "Please choose a valid number".black.on_white
            list_artist
            artist_menu
        else 
            artist=Artist.all[user_input.to_i - 1]
            artist_details(artist)
            continue_exploring_gallery(artist)
        end 
    end
def artist_menu puts "Please select a number from the list present to learn more about an artist" . black . on_white user_input = gets . chomp if ! user_input . to_i . between? ( 1 , Artist . all . count ) puts "Please choose a valid number" . black . on_white list_artist artist_menu else artist = Artist . all [ user_input . to_i - 1 ] artist_details ( artist ) continue_exploring_gallery ( artist ) end end
ARTIST:Asks User to make a selection from list, checks validity of selecetion, and, if valid, calls on artist_details
ARTIST : Asks User to make a selection from list checks validity of selecetion and if valid calls on artist_details