Sha256: 3f53d1af4dc5409dc0ee820245f471f583c6744d65bb588aa6e8bffe68ffaaed
Contents?: true
Size: 664 Bytes
Versions: 39
Compression:
Stored size: 664 Bytes
Contents
module RSpec module Matchers module BuiltIn # @api private # Provides the implementation for `match`. # Not intended to be instantiated directly. class Match < BaseMatcher # @api private # @return [String] def description "match #{surface_descriptions_in(expected).inspect}" end # @api private # @return [Boolean] def diffable? true end private def match(expected, actual) return true if values_match?(expected, actual) actual.match(expected) if actual.respond_to?(:match) end end end end end
Version data entries
39 entries across 36 versions & 10 rubygems