Sha256: fcd1c863481b8a652def25edbd8ec53e6ffd16988465c11ff168511ba059159a

Contents?: true

Size: 280 Bytes

Versions: 1

Compression:

Stored size: 280 Bytes

Contents

# typed: strict

module Mocktail::Matchers
  class Not < Base
    extend T::Sig

    sig { returns(Symbol) }
    def self.matcher_name
      :not
    end

    sig { params(actual: T.untyped).returns(T::Boolean) }
    def match?(actual)
      @expected != actual
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mocktail-2.0.0 lib/mocktail/sorbet/mocktail/matchers/not.rb