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