lib/kind/basic.rb in kind-5.7.0 vs lib/kind/basic.rb in kind-5.8.0

- old
+ new

@@ -46,11 +46,11 @@ return super(value) if method_names.empty? KIND.interface?(method_names, value) end - def of(kind, value, label: nil) - STRICT.object_is_a(kind, value, label) + def of(kind, value, label: nil, expected: nil) + STRICT.object_is_a(kind, value, label, expected) end alias_method :of!, :of def of_class(value)