Class: SimpleImagesDownloader::Validatable::FilePersistanceValidator
- Inherits:
-
Validator
- Object
- Validator
- SimpleImagesDownloader::Validatable::FilePersistanceValidator
- Defined in:
- lib/simple_images_downloader/validatable/file_persistance_validator.rb
Overview
FilePersistanceValidator class Responsible for validating file persistance
Instance Method Summary collapse
Instance Method Details
#validate(options) ⇒ Object
14 15 16 17 18 |
# File 'lib/simple_images_downloader/validatable/file_persistance_validator.rb', line 14 def validate() return if File.exist?([:path]) raise Errors::MissingFileError, [:path] end |