Class: AssLauncher::Enterprise::Cli::Parameters::StringParam Private
- Inherits:
-
Object
- Object
- AssLauncher::Enterprise::Cli::Parameters::StringParam
- Includes:
- AssLauncher::Enterprise::Cli::Parameters
- 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.
Parameter expects string value
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
-
#argument_require ⇒ Object
private
Parameter require argumet.
-
#arguments_count ⇒ Object
private
Count of parameter argumets.
-
#initialize(name, desc, binary_matcher, group, modes, parent = nil, **options) ⇒ StringParam
constructor
private
A new instance of StringParam.
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
#initialize(name, desc, binary_matcher, group, modes, parent = nil, **options) ⇒ StringParam
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.
Returns a new instance of StringParam.
226 227 228 229 230 231 232 233 234 235 236 |
# File 'lib/ass_launcher/enterprise/cli/parameters.rb', line 226 def initialize(name, desc, binary_matcher, group, modes, parent = nil, **) @name = name @desc = desc @modes = modes || Cli::DEFINED_MODES @binary_matcher = auto_binary_matcher(binary_matcher) @group = group @options = .merge @parent = parent @parent.add_child(self) unless parent.nil? end |
Instance Method Details
#argument_require ⇒ Object
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.
Parameter require argumet
239 240 241 |
# File 'lib/ass_launcher/enterprise/cli/parameters.rb', line 239 def argument_require arguments_count > 0 end |
#arguments_count ⇒ Object
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.
Count of parameter argumets
244 245 246 |
# File 'lib/ass_launcher/enterprise/cli/parameters.rb', line 244 def arguments_count 1 end |