Sha256: 6ea602ab6d36061335981748a36389afd261a11ae3cb1fa915b533b2f92da1e1

Contents?: true

Size: 276 Bytes

Versions: 14

Compression:

Stored size: 276 Bytes

Contents

module Pkg
  class ConfigValidations

    class << self

      # As a validation, this one is kindof lame but is intended as a seed pattern for possibly
      # more robust ones.
      def not_empty?(value)
        value.to_s.empty? ? false : true
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
packaging-0.106.0 lib/packaging/config/validations.rb
packaging-0.105.0 lib/packaging/config/validations.rb
packaging-0.104.0 lib/packaging/config/validations.rb
packaging-0.103.0 lib/packaging/config/validations.rb
packaging-0.102.0 lib/packaging/config/validations.rb
packaging-0.101.0 lib/packaging/config/validations.rb
packaging-0.99.82 lib/packaging/config/validations.rb
packaging-0.99.81 lib/packaging/config/validations.rb
packaging-0.99.80 lib/packaging/config/validations.rb
packaging-0.99.79 lib/packaging/config/validations.rb
packaging-0.99.78 lib/packaging/config/validations.rb
packaging-0.99.77 lib/packaging/config/validations.rb
packaging-0.88.77 lib/packaging/config/validations.rb
packaging-0.99.76 lib/packaging/config/validations.rb