Sha256: f41dcf4a57770bc650c04f5db333f662e65f709611aacdd09e52897ed1e23fea
Contents?: true
Size: 356 Bytes
Versions: 16
Compression:
Stored size: 356 Bytes
Contents
# typed: strict # frozen_string_literal: true module DearInventory module Validators class Required < DearInventory::Validator extend T::Sig sig { override.void } def call return if instance_variable_get(:@value).present? raise_error("the field is required but no value was provided") end end end end
Version data entries
16 entries across 16 versions & 1 rubygems