Class: Prompts::TextPrompt

Inherits:
Prompt
  • Object
show all
Defined in:
lib/prompts/text_prompt.rb

Instance Method Summary collapse

Methods inherited from Prompt

ask, #ask, #content, #default, #hint, #label, #prepare_content, #prepend_content

Constructor Details

#initializeTextPrompt

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