Module: Reflection::Validations
- Defined in:
- lib/reflection/validations.rb
Method Summary
Method Details
+ (Object) existence_of(path)
5 6 7 8 9 10 11 |
# File 'lib/reflection/validations.rb', line 5 def existence_of(path) if File.exist?(path) return true else Reflection::Support.exit_with_error "Option validation failed: #{path} does not exist." end end |