Class: Parxer::Validator::FilePresence
- Defined in:
- lib/parxer/validators/file_presence_validator.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Parxer::Validator::Base
Instance Method Details
#validate ⇒ Object
4 5 6 |
# File 'lib/parxer/validators/file_presence_validator.rb', line 4 def validate !context.file.to_s.blank? end |