Sha256: efc65c73ef004233c8f15e4fe17579a3defaa2842dda649905a7669f226c3fe6

Contents?: true

Size: 240 Bytes

Versions: 2

Compression:

Stored size: 240 Bytes

Contents

require_relative 'boolean_assay'

# Assert and object if strictly `false`.
#
class FalseAssay < BooleanAssay

  register :false

  #
  # Check assertion.
  #
  def self.pass?(subject)
    subject.false?  #FalseClass === subject
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

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