Sha256: a62bfc45e0d2e8c421cf124f02f7b105afbdca8f9b44f8a193a1a2a1a15e718a
Contents?: true
Size: 404 Bytes
Versions: 35
Compression:
Stored size: 404 Bytes
Contents
# frozen_string_literal: true module Zizia ## # A Validator that always gives an error named `:everytime`. # # @example # validator = AlwaysInvalidValidator.new # validator.validate(:anything, :at, :all) # => [Error<#...>] class AlwaysInvalidValidator < Validator ## # @return [Array<Validator::Error>] def validate(*) [Error.new(self, :everytime)] end end end
Version data entries
35 entries across 35 versions & 1 rubygems