Class: Parxer::Validator::FilePresence

Inherits:
Base
  • Object
show all
Defined in:
lib/parxer/validators/file_presence_validator.rb

Instance Attribute Summary

Attributes inherited from Base

#config

Instance Method Summary collapse

Methods inherited from Base

#id, #initialize

Constructor Details

This class inherits a constructor from Parxer::Validator::Base

Instance Method Details

#validateObject



4
5
6
# File 'lib/parxer/validators/file_presence_validator.rb', line 4

def validate
  !context.file.to_s.blank?
end