Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Array#min doesn't respect monkey patching #3944
p [1, 2, 3].min class Fixnum alias_method :old_cmp, :<=> def <=>(other) -old_cmp(other) end end p [1, 2, 3].min
I see this TODO
I did not consider the TODO important enough to finish before 9.1, especially since we first need a better mechanism to check for overridden methods without doing a lookup. It was not forgotten...just unlikely to ever be reported by someone who isn't also working on a Ruby implementation.