Sha256: ae8c7ac9cdf8e4d2b8f1125ac72ba4c1004387578c4c5c246f6e2635a136ff46

Contents?: true

Size: 325 Bytes

Versions: 2

Compression:

Stored size: 325 Bytes

Contents

module Expect
  module Matcher
    # Provides the implementation for `eql`.
    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
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
expect-0.0.2 lib/expect/matcher/eql.rb
expect-0.0.1 lib/expect/matcher/eql.rb