Sha256: ad7e45b6e1f62a5b204e39732cc41279eff69acb6e38db351e44f505719534c2
Contents?: true
Size: 646 Bytes
Versions: 20
Compression:
Stored size: 646 Bytes
Contents
# frozen_string_literal: true # # Copyright (c) 2020-present, Blue Marble Payroll, LLC # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # require_relative 'blank' module Burner module Modeling class Validations # Check if a value is present. If it is blank (null or empty) then it is invalid. class Present < Blank acts_as_hashable def valid?(object_value, resolver) !super(object_value, resolver) end private def default_message 'is required' end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems