method

validate!

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

Method not available on this version

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

validate!()
protected

No documentation available.

# File lib/bundler/vendor/thor/lib/thor/parser/option.rb, line 112
    def validate!
      raise ArgumentError, "An option cannot be boolean and required." if boolean? && required?
      validate_default_type! if @check_default_type
    end