class Thor::Shell::Basic
def ask(statement, *args)
ask("What is your favorite Neopolitan flavor?", :limited_to => ["strawberry", "chocolate", "vanilla"])
ask("What is your name?")
==== Example
must be given and re-asked the question.
they will be shown a message stating that one of those answers
array of acceptable answers. If one of those is not supplied,
If asked to limit the correct responses, you can pass in an
Asks something to the user and receives a response.
def ask(statement, *args) options = args.last.is_a?(Hash) ? args.pop : {} options[:limited_to] ? ask_filtered(statement, options[:limited_to], *args) : ask_simply(statement, *args) end