Sha256: fbd93c4f5834234da62be3409789cbf6a4ef6974ade1fd99c992c0bca9066ddf
Contents?: true
Size: 331 Bytes
Versions: 1
Compression:
Stored size: 331 Bytes
Contents
module Inspector module Constraints include Constraint class Eq def initialize(expected) @expected = expected end def valid?(actual) actual == @expected end def to_s "eq" end def inspect "#<== #{@expected.inspect}>" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
object-inspector-0.1.0 | lib/inspector/constraints/eq.rb |