Sha256: 20d318c4c86864873e3f8b8a7ac9940d5646b0b33c7527582abb63d97705362b

Contents?: true

Size: 159 Bytes

Versions: 2

Compression:

Stored size: 159 Bytes

Contents

require_relative 'assertion'

class NilAssay < Assertion

  register :nil

  #
  # Check assertion.
  #
  def self.pass?(subject)
    subject.nil?
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
assay-0.4.1 lib/assay/nil_assay.rb
assay-0.4.0 lib/assay/nil_assay.rb