Class: Matheus::Qs
Overview
Usage:
$ qs
Lists the questions asked and their answers.
Instance Method Summary collapse
Methods inherited from Command
Methods included from StringFormat
Methods included from Result::Methods
Instance Method Details
#call(_) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/matheus/qs.rb', line 10 def call(_) return puts "No questions found in history." if history.empty? answer = prompt.select("Question:", choices, per_page: 10) print_markdown(answer) rescue => e Failure(e.) end |