Sha256: 4b014c189d4ce22309279e7f830fb923589989ef9f3259fe32cc7346aa337d12
Contents?: true
Size: 311 Bytes
Versions: 3
Compression:
Stored size: 311 Bytes
Contents
module Matchi # **Truth** matcher. class BeTrue < BasicObject # @example Is it true? # be_true = Matchi::BeTrue.new # be_true.matches? { true } # => true # # @return [Boolean] Comparison between actual and expected values. def matches? true.equal?(yield) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
matchi-0.0.5 | lib/matchi/be_true.rb |
matchi-0.0.4 | lib/matchi/be_true.rb |
matchi-0.0.3 | lib/matchi/be_true.rb |