You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The implementation of Enumerable::Argumentable is broken for methods with an .arity of -1 such as .min and .max
In both cases the method has a variable number of arguments which makes it .arity = -1. Given the way Argumentable works for arity -1 the method always passes the single argument to the min method, and passes nothing to the each resulting it taking the X smallest values of the given and unchanged array
The implementation of Enumerable::Argumentable is broken for methods with an .arity of -1 such as .min and .max
In both cases the method has a variable number of arguments which makes it .arity = -1. Given the way Argumentable works for arity -1 the method always passes the single argument to the min method, and passes nothing to the each resulting it taking the X smallest values of the given and unchanged array
The offending code is here
The text was updated successfully, but these errors were encountered: