lib/cli.rb
#Ask user if they want to explore all artist, all galleries, or exit. 
Ask user if they want to explore all artist, all galleries, or exit.
Ask user if they want to explore all artist all galleries or exit .
def closer
        puts "How would you like to proceed? Please Type Number to Select.".black.on_white
        puts " (1) Explore all Artist"
        puts " (2) Explore all Galleries"
        puts " (3) Exit"
        input=gets.chomp
            if input == "1"
                list_artist
                artist_menu
            elsif input == "2"
                list_gallery
                gallery_menu
            elsif input == "3"
                puts ""
                puts "Thank you for checking out the 1-54 Catalog. Please visit www.1-54.com to learn more!".white.on_magenta
                puts ""
            else 
                puts "Please enter a valid ".black.on_white
                closer
            end 
    end
def closer puts "How would you like to proceed? Please Type Number to Select." . black . on_white puts " (1) Explore all Artist" puts " (2) Explore all Galleries" puts " (3) Exit" input = gets . chomp if input == "1" list_artist artist_menu elsif input == "2" list_gallery gallery_menu elsif input == "3" puts "" puts "Thank you for checking out the 1-54 Catalog. Please visit www.1-54.com to learn more!" . white . on_magenta puts "" else puts "Please enter a valid " . black . on_white closer end end
Ask user if they want to explore all artist, all galleries, or exit.
Ask user if they want to explore all artist all galleries or exit .
#if they say 1 display All Artist #if they say 2 display all Galleries #if they say 3 exit application #if input is invalid raise error