IlkhamGaysin/simple-images-downloader

View on GitHub
lib/simple_images_downloader/validatable/validator.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

module SimpleImagesDownloader
  module Validatable
    # Validator class
    # Responsible for defining interface for validators
    class Validator
      # @abstract
      def validate(_value)
        raise NotImplementedError, 'must be implemented in subclass'
      end
    end
  end
end