Method: Brine::TypeChecking#type_check_for

Defined in:
lib/brine/type_checking.rb

#type_check_for(type) ⇒ RSpec::Matcher

Return the Matcher for the specified type.

This is the primary interface for type_checking to the rest of the system, and is the only one expected to be used during test execution.

Parameters:

  • type (Class)

    Specify the type for which a Matcher should be returned.

Returns:

  • (RSpec::Matcher)

    Return the Matcher currently registered for the type.

[View source]

79
80
81
# File 'lib/brine/type_checking.rb', line 79

def type_check_for(type)
  type_checks.for_type(type)
end