Sha256: fc757f72ea55b6d8feb45884da11d150c2cc37eff0cf953c5ed73ee5a7436a29
Contents?: true
Size: 194 Bytes
Versions: 2
Compression:
Stored size: 194 Bytes
Contents
module ObjectValidator module Checks class Type < Base def call return if method.is_a?(value) errors.add(name, "must be a #{value.name}") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
object_validator-0.1.1 | lib/object_validator/checks/type.rb |
object_validator-0.1.0 | lib/object_validator/checks/type.rb |