Module: Reflection::Validations
- Defined in:
- lib/reflection/validations.rb
Class Method Summary collapse
Class Method Details
.existence_of(path) ⇒ Object
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 |