Class: LilUtils::CLI::YesNoCancel

Inherits:
OptionList show all
Defined in:
lib/lilutils/cli/cli.rb

Constant Summary

Constants inherited from OptionList

OptionList::DEFAULT_PROMPT

Instance Method Summary collapse

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