Class: LilUtils::CLI::NumberedOptions

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

Overview

An OptionList where all the Options are NumberedOptions. You can’t mix NumberedOptions with others.

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(options, default_option_index, prompt, strict, istream = $stdin, ostream = $stdout) ⇒ NumberedOptions

all the options must be NumberedOption instances



211
212
213
# File 'lib/lilutils/cli/cli.rb', line 211

def initialize(options, default_option_index, prompt, strict, istream=$stdin, ostream=$stdout)
  super
end