class CommandLineInterface

Public Instance Methods

error() click to toggle source
# File lib/stem-for-women/cli.rb, line 23
def error
  "\nPlease enter a valid response."
end
goodbye() click to toggle source
# File lib/stem-for-women/cli.rb, line 31
def goodbye
  "\nGoodbye!\n"
end
prompt() click to toggle source
# File lib/stem-for-women/cli.rb, line 27
def prompt
  "Please enter Y or N."
end
run() click to toggle source
# File lib/stem-for-women/cli.rb, line 9
def run
  puts "\nWelcome to "+"STEM for Women!".colorize(:light_magenta)+"\nPlease enter "+"E".colorize(:light_blue)+" to view events or enter "+"F".colorize(:light_blue)+" to view funding options:"
  input = gets.strip.downcase
  if input == "e"
    event_sequence
  elsif input == "f"
    scholarship_sequence
  elsif input == "exit" || input == "q" || input == "quit"
    exit
  else
    run
  end
end