Module: Doing::PromptInput
- Included in:
- Prompt
- Defined in:
- lib/doing/prompt/input.rb
Overview
Methods for requesting user text input
Instance Method Summary collapse
-
#enter_text(prompt, default_response: '') ⇒ String
deprecated
Deprecated.
Use #read_line instead
-
#read_line(prompt: 'Enter text', completions: [], default_response: '') ⇒ String
Request single-line input using Readline.
-
#read_lines(prompt: 'Enter text', completions: [], default_response: '') ⇒ String
Request multi-line input using Readline.
-
#request_lines(prompt: 'Enter text', default_response: '') ⇒ Object
deprecated
Deprecated.
Use #read_lines instead
Instance Method Details
#enter_text(prompt, default_response: '') ⇒ String
Deprecated.
Use #read_line instead
Request single-line input
#read_line(prompt: 'Enter text', completions: [], default_response: '') ⇒ String
Request single-line input using Readline. Allows for control sequences and tab completions
#read_lines(prompt: 'Enter text', completions: [], default_response: '') ⇒ String
Request multi-line input using Readline. Allows for control sequences and tab completion
#request_lines(prompt: 'Enter text', default_response: '') ⇒ Object
Deprecated.
Use #read_lines instead
Request multi-line input