Sha256: a127d78ead7ee6954e9c70b602a22d1cdd1b2cdd0c95c5184c56bb88346eaa88
Contents?: true
Size: 380 Bytes
Versions: 2
Compression:
Stored size: 380 Bytes
Contents
# -*- encoding: utf-8 -*- require 'aequitas/rule/presence' module Aequitas class Rule class Presence class NotNil < Presence def valid?(resource) !attribute_value(resource).nil? end def violation_type(resource) :nil end end # class NonNil end # class Presence end # class Rule end # module Aequitas
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aequitas-0.0.2 | lib/aequitas/rule/presence/not_nil.rb |
aequitas-0.0.1 | lib/aequitas/rule/presence/not_nil.rb |