Class: Pkg::ConfigValidations
- Inherits:
-
Object
- Object
- Pkg::ConfigValidations
- Defined in:
- lib/packaging/config/validations.rb
Class Method Summary collapse
-
.not_empty?(value) ⇒ Boolean
As a validation, this one is kindof lame but is intended as a seed pattern for possibly more robust ones.
Class Method Details
.not_empty?(value) ⇒ Boolean
As a validation, this one is kindof lame but is intended as a seed pattern for possibly more robust ones.
6 7 8 |
# File 'lib/packaging/config/validations.rb', line 6 def not_empty?(value) !value.to_s.empty? end |