Class: Pkg::ConfigValidations

Inherits:
Object
  • Object
show all
Defined in:
lib/packaging/config/validations.rb

Class Method Summary collapse

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.

Returns:

  • (Boolean)


6
7
8
# File 'lib/packaging/config/validations.rb', line 6

def not_empty?(value)
  !value.to_s.empty?
end