Class: PRWithParams::OptionsValidator

Inherits:
Object
  • Object
show all
Defined in:
lib/pr_with_params/options_validator.rb

Defined Under Namespace

Classes: ValidatorError

Constant Summary collapse

VALIDATOR_CLASS_MAP =
{
  conventional_commits: 'PRWithParams::ConventionalCommitValidator'
}.freeze

Class Method Summary collapse

Class Method Details

.validate!(options, validators: []) ⇒ Object



10
11
12
13
14
# File 'lib/pr_with_params/options_validator.rb', line 10

def validate!(options, validators: [])
  validators.each do |validator|
    validate_options(validator, options)
  end
end