lib/cli.rb
def presenting_artist_menu(gallery)

        puts "Please select an artist".black.on_white
        user_input=gets.chomp
        if !user_input.to_i.between?(1,gallery.artists.count)
            puts "Invalid entry. Please try again".black.on_white
            list_presenting_artists(gallery)
            presenting_artist_menu(gallery) 
        else 
            artist= gallery.artists[user_input.to_i - 1]
            artist_details(artist)
            continue_exploring_presenting_artists(gallery)
        end

    end
#GALLERY:Take in argument of gallery, ask user to choose an artist who is being presented by that gallery, and if selection is valid, calls on artist_details taking argument of selected artist
Take in argument of gallery, ask user to choose an artist who is being presented by that gallery, and if selection is valid, calls on artist_details taking argument of selected artist
Take in argument of gallery ask user to choose an artist who is being presented by that gallery and if selection is valid calls on artist_details taking argument of selected artist
def presenting_artist_menu(gallery)
        puts "Please select an artist".black.on_white
        user_input=gets.chomp
        if !user_input.to_i.between?(1,gallery.artists.count)
            puts "Invalid entry. Please try again".black.on_white
            list_presenting_artists(gallery)
            presenting_artist_menu(gallery) 
        else 
            artist= gallery.artists[user_input.to_i - 1]
            artist_details(artist)
            continue_exploring_presenting_artists(gallery)
        end
    end
def presenting_artist_menu ( gallery ) puts "Please select an artist" . black . on_white user_input = gets . chomp if ! user_input . to_i . between? ( 1 , gallery . artists . count ) puts "Invalid entry. Please try again" . black . on_white list_presenting_artists ( gallery ) presenting_artist_menu ( gallery ) else artist = gallery . artists [ user_input . to_i - 1 ] artist_details ( artist ) continue_exploring_presenting_artists ( gallery ) end end
GALLERY:Take in argument of gallery, ask user to choose an artist who is being presented by that gallery, and if selection is valid, calls on artist_details taking argument of selected artist
GALLERY : Take in argument of gallery ask user to choose an artist who is being presented by that gallery and if selection is valid calls on artist_details taking argument of selected artist
gallery