Class: HelloRubyCli::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/hello_ruby_cli.rb

Overview

Main Cli Class

Instance Method Summary collapse

Instance Method Details

#career_historyObject



14
15
16
17
18
# File 'lib/hello_ruby_cli.rb', line 14

def career_history
  prompt = TTY::Prompt.new
  company_name = prompt.select('Choose company?', Company::COMPANIES)
  puts company_name.empty? ? 'no company name' : Company.new(company_name).show
end