lib/kind/validator.rb in kind-5.2.0 vs lib/kind/validator.rb in kind-5.3.0
- old
+ new
@@ -99,10 +99,10 @@
end
def kind_is_not(expected, value)
case expected
when ::Class
- return if expected == Kind.of!(::Class, value) || value < expected
+ return if expected == Kind.of_class(value) || value < expected
"must be the class or a subclass of `#{expected.name}`"
when ::Module
return if value.kind_of?(::Class) && value <= expected
return if expected == Kind.of_module_or_class(value) || value.kind_of?(expected)