class CLI

Public Instance Methods

exit_program() click to toggle source
# File lib/dexter_plusplus/cli.rb, line 92
def exit_program
    puts"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
    puts"\t\tHope you enjoyed using Dexter++! See you again soon!"
    puts"\n\n\n"
    self.good_bye
    puts "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
    begin
        exit
    rescue SystemExit
        
    end
end
get_menu_from_array(array) click to toggle source
# File lib/dexter_plusplus/cli.rb, line 88
def get_menu_from_array(array)
    @@prompt.select("\n\n\nSelect an option to see more information.\n", array, cycle: true)
end
good_bye() click to toggle source
# File lib/dexter_plusplus/cli.rb, line 27
def good_bye
    puts "
        
        ██████╗  ██████╗  ██████╗ ██████╗ ██████╗ ██╗   ██╗███████╗██╗
        ██╔════╝ ██╔═══██╗██╔═══██╗██╔══██╗██╔══██╗╚██╗ ██╔╝██╔════╝██║
        ██║  ███╗██║   ██║██║   ██║██║  ██║██████╔╝ ╚████╔╝ █████╗  ██║
        ██║   ██║██║   ██║██║   ██║██║  ██║██╔══██╗  ╚██╔╝  ██╔══╝  ╚═╝
        ╚██████╔╝╚██████╔╝╚██████╔╝██████╔╝██████╔╝   ██║   ███████╗██╗
        ╚═════╝  ╚═════╝  ╚═════╝ ╚═════╝ ╚═════╝    ╚═╝   ╚══════╝╚═╝
                                                                        
                                               
  "
end
greeting() click to toggle source
# File lib/dexter_plusplus/cli.rb, line 5
def greeting
    puts "              -⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨



    ██████╗░███████╗██╗░░██╗████████╗███████╗██████╗░░░░░░░░░░░░░░░
    ██╔══██╗██╔════╝╚██╗██╔╝╚══██╔══╝██╔════╝██╔══██╗░░██╗░░░░██╗░░
    ██║░░██║█████╗░░░╚███╔╝░░░░██║░░░█████╗░░██████╔╝██████╗██████╗
    ██║░░██║██╔══╝░░░██╔██╗░░░░██║░░░██╔══╝░░██╔══██╗╚═██╔═╝╚═██╔═╝
    ██████╔╝███████╗██╔╝╚██╗░░░██║░░░███████╗██║░░██║░░╚═╝░░░░╚═╝░░
    ╚═════╝░╚══════╝╚═╝░░╚═╝░░░╚═╝░░░╚══════╝╚═╝░░╚═╝░░░░░░░░░░░░░░



                 🄰🄽 🄴🄽🄷🄰🄽🄲🄴🄳 🄿🄾🄺🄴🄳🄴🅇 🄱🅈 🅂🄴🄰🄽 🅃🄷🄾🄼🄿🅂🄾🄽


           -⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨-⃨"
    puts"\n\n\n\n Welcome to Dexter++! Your personal tool for exploring the Pokemon universe!"
    puts"\n\n"
end
main_menu() click to toggle source
prompt() click to toggle source
# File lib/dexter_plusplus/cli.rb, line 80
def prompt
    @@prompt
end
run() click to toggle source
# File lib/dexter_plusplus/cli.rb, line 75
def run
    self.greeting
    self.main_menu
end
type_menu() click to toggle source
# File lib/dexter_plusplus/cli.rb, line 84
def type_menu
    @@prompt.select("Select a type to search for.", %w(Normal Flying Poison Ground Rock Bug Ghost Steel Fire Water Grass Electric Psychic Ice Dragon Dark Fairy Unknown Shadow Back ), cycle: true)
end