Sha256: b858b7c223025ff74a56d500b48efece72cc68afd3b9593ecfd928041b4883b4

Contents?: true

Size: 373 Bytes

Versions: 2

Compression:

Stored size: 373 Bytes

Contents

# -*- encoding: utf-8 -*-

require 'aequitas/rule/absence'

module Aequitas
  class Rule
    class Absence
      class Nil < Absence

        def valid?(resource)
          attribute_value(resource).nil?
        end

        def violation_type(resource)
          :not_nil
        end

      end # class Nil
    end # class Absence
  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/absence/nil.rb
aequitas-0.0.1 lib/aequitas/rule/absence/nil.rb