Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v2.3.8) is shown here.
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