Class: Foobara::CommandConnectors::ShCliConnector::InputsParser::Option::OnFlag

Inherits:
Flag
  • Object
show all
Defined in:
foobara-sh-cli-connector-1.1.4/src/sh_cli_connector/inputs_parser/option/on_flag.rb

Instance Method Summary collapse

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