class RSpec::Matchers::BuiltIn::BeAKindOf
def match(expected, actual)
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