Sha256: cea3539a5cb6dfd399dbedd3fcc8c9ed908f9ff24c35734d77d76961a2c42998
Contents?: true
Size: 363 Bytes
Versions: 2
Compression:
Stored size: 363 Bytes
Contents
require_relative 'boolean_assay' # Comparison assertion for TrueClass. # # TrueAssay.pass?(true) #=> true # TrueAssay.fail?(true) #=> false # TrueAssay.pass?(1) #=> false # class TrueAssay < BooleanAssay register :true # # Check assertion using `#true?` method. # def self.pass?(subject) subject.true? #TrueClass === subject end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
assay-0.4.1 | lib/assay/true_assay.rb |
assay-0.4.0 | lib/assay/true_assay.rb |