method

switch_option

ruby latest stable - Class: Bundler::Thor::Options

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

switch_option(arg)
protected

No documentation available.

# File lib/bundler/vendor/thor/lib/thor/parser/options.rb, line 162
    def switch_option(arg)
      if match = no_or_skip?(arg) # rubocop:disable AssignmentInCondition
        @switches[arg] || @switches["--#{match}"]
      else
        @switches[arg]
      end
    end