Class: LilUtils::CLI::YesNoCancel
- Inherits:
-
OptionList
- Object
- OptionList
- LilUtils::CLI::YesNoCancel
- Defined in:
- lib/lilutils/cli/cli.rb
Constant Summary
Constants inherited from OptionList
Instance Method Summary collapse
-
#initialize(default_option = YES, prompt = DEFAULT_PROMPT, strict = true, istream = $stdin, ostream = $stdout) ⇒ YesNoCancel
constructor
A new instance of YesNoCancel.
Methods inherited from OptionList
#debug, #display_string, #show, #valid_response?
Constructor Details
#initialize(default_option = YES, prompt = DEFAULT_PROMPT, strict = true, istream = $stdin, ostream = $stdout) ⇒ YesNoCancel
Returns a new instance of YesNoCancel.
204 205 206 |
# File 'lib/lilutils/cli/cli.rb', line 204 def initialize(default_option=YES, prompt=DEFAULT_PROMPT, strict=true, istream=$stdin, ostream=$stdout) super(YNC, YNC.index(default_option), prompt, strict, istream, ostream) end |