Sha256: 55c7c1b4f809eef88b1b30c54c75abb842f7170b0a982814291ace2bab3187c0

Contents?: true

Size: 347 Bytes

Versions: 1

Compression:

Stored size: 347 Bytes

Contents

# typed: strict

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

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

    sig { params(actual: T.untyped).returns(T::Boolean) }
    def match?(actual)
      actual.respond_to?(:match?) && actual.match?(@expected)
    rescue
      false
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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