@api private Provides the implementation for `match`. Not intended to be instantiated directly.
@api private @return [String]
# File lib/rspec/matchers/built_in/match.rb, line 11 def description "match #{surface_descriptions_in(expected).inspect}" end
@api private @return [Boolean]
# File lib/rspec/matchers/built_in/match.rb, line 17 def diffable? true end
# File lib/rspec/matchers/built_in/match.rb, line 23 def match(expected, actual) return true if values_match?(expected, actual) actual.match(expected) if actual.respond_to?(:match) end