Class: AssLauncher::Enterprise::Cli::Parameters::Chose Private
- Inherits:
-
StringParam
- Object
- StringParam
- AssLauncher::Enterprise::Cli::Parameters::Chose
- Defined in:
- lib/ass_launcher/enterprise/cli/parameters.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Chose parameter expects argunment value from chose_list
Constant Summary
Constants included from AssLauncher::Enterprise::Cli::Parameters
Instance Attribute Summary
Attributes included from AssLauncher::Enterprise::Cli::Parameters
#binary_matcher, #desc, #group, #modes, #name, #options, #parent
Instance Method Summary collapse
- #valid?(value) ⇒ Boolean private
Methods inherited from StringParam
#argument_require, #arguments_count, #initialize
Methods included from AssLauncher::Enterprise::Cli::Parameters
#add_child, #child?, #childs, #chose_list, #deep, #full_name, #match?, #match_version?, #parents, #required?, #restrict_from, #root?, #switch_list, #switch_value, #to_args, #to_s, #to_sym, #usage, #value_validator
Constructor Details
This class inherits a constructor from AssLauncher::Enterprise::Cli::Parameters::StringParam
Instance Method Details
#valid?(value) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
360 361 362 363 |
# File 'lib/ass_launcher/enterprise/cli/parameters.rb', line 360 def valid?(value) chose_list.keys.map(&:to_s).map(&:downcase).include?\ value.to_s.downcase end |