class RSpec::Matchers::BuiltIn::BeAKindOf

Experimental RBS support (using type sampling data from the type_fusion project).

# sig/rspec/matchers/built_in/be_kind_of.rbs

class RSpec::Matchers::BuiltIn::BeAKindOf < RSpec::Matchers::BuiltIn::BaseMatcher
  def match: (Class expected, String actual) -> true
end

Not intended to be instantiated directly.
Provides the implementation for ‘be_a_kind_of`.
@api private

def match(expected, actual)

Experimental RBS support (using type sampling data from the type_fusion project).

def match: (Class expected, String actual) -> true

This signature was generated using 6 samples from 1 application.

def match(expected, actual)
  actual.kind_of?(expected)
rescue NoMethodError
  raise ::ArgumentError, "The #{matcher_name} matcher requires that " \
                         "the actual object responds to #kind_of? method " \
                         "but a `NoMethodError` was encountered instead."
end