lib/cli.rb
def ask_meta(state)
        puts "Display state metadata?: Y/N"
        response = gets.upcase.strip

        if response == "Y"
            sleep(0.5)
            list_meta(state)
        elsif response == "N"
            sleep(0.3)
            puts "------------------------------"
        else 
            sleep(0.3)
            puts "------------------------------"
            puts "Please input 'Y' or 'N' only."
            ask_meta(state)
        end
    end
#method to ask if user would like to see metadata
method to ask if user would like to see metadata
method to ask if user would like to see metadata
def ask_meta(state)
        puts "Display state metadata?: Y/N"
        response = gets.upcase.strip
        if response == "Y"
            sleep(0.5)
            list_meta(state)
        elsif response == "N"
            sleep(0.3)
            puts "------------------------------"
        else 
            sleep(0.3)
            puts "------------------------------"
            puts "Please input 'Y' or 'N' only."
            ask_meta(state)
        end
    end
def ask_meta ( state ) puts "Display state metadata?: Y/N" response = gets . upcase . strip if response == "Y" sleep ( 0.5 ) list_meta ( state ) elsif response == "N" sleep ( 0.3 ) puts "------------------------------" else sleep ( 0.3 ) puts "------------------------------" puts "Please input 'Y' or 'N' only." ask_meta ( state ) end end
method to ask if user would like to see metadata
method to ask if user would like to see metadata
state