Method: CommandKit::Options::OptionValue#initialize
- Defined in:
- lib/command_kit/options/option_value.rb
#initialize(type: String, default: nil, usage: self.class.default_usage(type), **kwargs) ⇒ OptionValue
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.
Initializes the option value.
70 71 72 73 74 75 76 77 78 |
# File 'lib/command_kit/options/option_value.rb', line 70 def initialize(type: String, default: nil, usage: self.class.default_usage(type), **kwargs) super(usage: usage, **kwargs) @type = type @default = default end |