Class: Prompts::TextPrompt
Instance Method Summary collapse
-
#initialize ⇒ TextPrompt
constructor
A new instance of TextPrompt.
Methods inherited from Prompt
ask, #ask, #content, #default, #hint, #label, #prepare_content, #prepend_content
Constructor Details
#initialize ⇒ TextPrompt
Returns a new instance of TextPrompt.
5 6 7 8 9 10 |
# File 'lib/prompts/text_prompt.rb', line 5 def initialize(...) super @instructions = "Press Enter to submit" @hint ||= "Type your response and press Enter ⏎" end |