Sha256: 92565e6e09a35cabcaa333a939a870c508cd2842188454dbf182610abd119c11
Contents?: true
Size: 328 Bytes
Versions: 48
Compression:
Stored size: 328 Bytes
Contents
# frozen_string_literal: true module Ree::Contracts class ClassValidator < BaseValidator def call(value) value.is_a?(contract) end def to_s contract.name end def message(value, _name, _lvl = 1) "expected #{contract}, got #{value.class} => #{truncate(value.inspect)}" end end end
Version data entries
48 entries across 48 versions & 1 rubygems