piotrmurach / tty-prompt

A beautiful and powerful interactive command line prompt
https://ttytoolkit.org
MIT License
1.47k stars 136 forks source link

Allow question.in to take an array (and not only a Range) #13

Closed oliviermilla closed 8 years ago

oliviermilla commented 8 years ago

It's all in the title. I'd like to be able to do:

prompt.ask 'Which" do |question|
    question.in array
end

:)

oliviermilla commented 8 years ago

OK, I can already do that with a :validate and a Proc. :)