Sha256: 7e201539f025f907636cd64b7152e6f583ac431768f701bd28db2d5d0b423130
Contents?: true
Size: 326 Bytes
Versions: 1
Compression:
Stored size: 326 Bytes
Contents
class Object def contrast_with(other, fields = other.keys) detective = Contrast::Detective.new(*fields) detective.examine(self, other) end def contrast_with!(other, fields = other.keys) results = self.contrast_with(other, fields) raise Contrast::MatchingException.new(results) if results.any? end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
contrast-1.1.0 | lib/contrast_with.rb |