Sha256: fafdebd1604df3e1460d7243e449d2dbd876dead770108a0638239a2bf5a361e
Contents?: true
Size: 397 Bytes
Versions: 38
Compression:
Stored size: 397 Bytes
Contents
require 'dry-validation' module PactBroker module Api module Contracts module DryValidationPredicates include Dry::Logic::Predicates predicate(:date?) do |value| DateTime.parse(value) rescue false end predicate(:not_blank?) do | value | value && value.is_a?(String) && value.strip.size > 0 end end end end end
Version data entries
38 entries across 38 versions & 1 rubygems