lib/kind.rb in kind-4.0.0 vs lib/kind.rb in kind-4.1.0

- old
+ new

@@ -10,14 +10,14 @@ require 'kind/empty' require 'kind/dig' require 'kind/try' require 'kind/presence' require 'kind/undefined' -require 'kind/type_checker' +require 'kind/maybe' +require 'kind/type_checker' require 'kind/type_checkers' -require 'kind/maybe' require 'kind/deprecations/checker' require 'kind/deprecations/of' require 'kind/deprecations/is' require 'kind/deprecations/types' @@ -57,10 +57,10 @@ return Is end return is?(expected, object) if UNDEFINED != object - raise ArgumentError, 'wrong number of arguments (given 1, expected 2)' + WRONG_NUMBER_OF_ARGS.error!(given: 1, expected: 2) end def self.of(kind = UNDEFINED, object = UNDEFINED) if UNDEFINED == kind && UNDEFINED == object DEPRECATION.warn('`Kind.of` without args is deprecated. This behavior will be removed in %{version}')