Sha256: 7ce6aca922e84b4d8971d7a0f96ed6b440f9ffec400544917d6ca54baff4953b
Contents?: true
Size: 669 Bytes
Versions: 3
Compression:
Stored size: 669 Bytes
Contents
# frozen_string_literal: true require_relative 'field_validator' module Dragnet module Validators module Fields # Validates the +path+ attribute of a +Repo+ object. class PathValidator < Dragnet::Validators::Fields::FieldValidator # Validates the Path of the repository. # @param [String] key The name of the key # @param [Object] value The value of the key # @raise [Dragnet::Errors::ValidationError] If the path is missing, or # it isn't a String. def validate(key, value) validate_presence(key, value) validate_type(key, value, String) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dragnet-5.3.1 | lib/dragnet/validators/fields/path_validator.rb |
dragnet-5.3.0 | lib/dragnet/validators/fields/path_validator.rb |
dragnet-5.2.1 | lib/dragnet/validators/fields/path_validator.rb |