Method: Whatsa::CLI#get_sec_choice
- Defined in:
- lib/whatsa/cli.rb
#get_sec_choice(article) ⇒ Object
120 121 122 123 124 125 126 127 128 |
# File 'lib/whatsa/cli.rb', line 120 def get_sec_choice(article) display_sections(article) loop do choice = gets_command section = article.choose_section(choice) return section if section puts "Hmm... I don't think that's a valid section. Try again!" end end |