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