Sha256: 41ad084d72e80562959f40bc7c28b9bd2d8d90e21defcafa5177cc957311ba7a

Contents?: true

Size: 373 Bytes

Versions: 7

Compression:

Stored size: 373 Bytes

Contents

module Mocktail::Matchers
  class Any < Base
    def self.matcher_name
      :any
    end

    # Change this comment to a descriptive one once this is merged:
    # https://github.com/rubocop/rubocop/pull/10551
    def initialize # standard:disable Style/RedundantInitialize
    end

    def match?(actual)
      true
    end

    def inspect
      "any"
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mocktail-1.2.3 lib/mocktail/matchers/any.rb
mocktail-1.2.2 lib/mocktail/matchers/any.rb
mocktail-1.2.1 lib/mocktail/matchers/any.rb
mocktail-1.2.0 lib/mocktail/matchers/any.rb
mocktail-1.1.3 lib/mocktail/matchers/any.rb
mocktail-1.1.2 lib/mocktail/matchers/any.rb
mocktail-1.1.1 lib/mocktail/matchers/any.rb