Class: VagrantWizard::Prompt
- Defined in:
- lib/vagrant-wizard/inputs/prompt.rb
Instance Attribute Summary
Attributes inherited from Input
#data, #output, #prompt, #silent
Instance Method Summary collapse
Methods inherited from Input
Constructor Details
This class inherits a constructor from VagrantWizard::Input
Instance Method Details
#processInput ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/vagrant-wizard/inputs/prompt.rb', line 7 def processInput prompt = TTY::Prompt.new if @data.key?('default') @output = prompt.ask(@prompt, default: @data['default']) return end @output = prompt.ask(@prompt) end |