class HighLine::QuestionAsker

def gather_regexp

Returns:
  • (Array) - answers
def gather_regexp
  gather_with_array do |answers|
    answers << ask_once until answer_matches_regex(answers.last)
    answers.pop
  end
end