Module: StrongConfirmation
- Included in:
- EtnaApp::Magma::Models::ApplyTemplate, EtnaApp::Magma::Models::CopyTemplate, EtnaApp::Magma::Models::LoadFromRedcap, EtnaApp::Magma::Models::SetDateShiftRoot
- Defined in:
- lib/helpers.rb
Instance Method Summary collapse
Instance Method Details
#confirm ⇒ Object
84 85 86 87 88 89 90 91 92 93 |
# File 'lib/helpers.rb', line 84 def confirm puts "Confirm Y/n:" input = STDIN.gets.chomp if input.downcase != "y" puts "Bailing..." return false end true end |