Class: Foobara::CommandConnectors::ShCliConnector::InputsParser::Option::OnFlag
- Inherits:
-
Flag
- Object
- Option
- Flag
- Foobara::CommandConnectors::ShCliConnector::InputsParser::Option::OnFlag
- Defined in:
- foobara-sh-cli-connector-1.1.4/src/sh_cli_connector/inputs_parser/option/on_flag.rb
Instance Method Summary collapse
-
#cast_value(value) ⇒ Object
rubocop:disable Naming/PredicateMethod.
Methods inherited from Flag
#_argument_text, applicable?, #array?, attribute_to_options, #show_default?
Instance Method Details
#cast_value(value) ⇒ Object
rubocop:disable Naming/PredicateMethod
8 9 10 11 12 13 14 15 16 |
# File 'src/sh_cli_connector/inputs_parser/option/on_flag.rb', line 8 def cast_value(value) unless value == true # :nocov: raise "This shouldn't happen. Please debug this!" # :nocov: end true end |