Sha256: 258c575942e7d73425487170d1c038c00200ad299388e06028a500a83f6c0e6c
Contents?: true
Size: 268 Bytes
Versions: 2
Compression:
Stored size: 268 Bytes
Contents
module Matchi # **Equivalence** matcher. class Eql < BasicObject def initialize(expected) @expected = expected end # @return [Boolean] Comparison between actual and expected values. def matches? @expected.eql?(yield) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
matchi-0.0.2 | lib/matchi/eql.rb |
matchi-0.0.1 | lib/matchi/eql.rb |