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