yes?(question)
protected
Helper to test if the user says yes(y)?
Example
freeze! if yes?("Should I freeze the latest Rails?")
# File railties/lib/rails_generator/generators/applications/app/template_runner.rb, line 341
def yes?(question)
answer = ask(question).downcase
answer == "y" || answer == "yes"
end