You are viewing a single comment's thread. Return to all comments →
I'm not sure but it seems like there is an error wit Fixnum and Bignum classes, so one of the monkey patch could be:
class Integer def is_a?(klass) return true if klass == Fixnum || klass == Bignum super end end
class Fixnum < Integer end
class Bignum < Integer end
Seems like cookies are disabled on this browser, please enable them to open this website
Ruby - Enumerable - reduce
You are viewing a single comment's thread. Return to all comments →
I'm not sure but it seems like there is an error wit Fixnum and Bignum classes, so one of the monkey patch could be:
class Fixnum < Integer end
class Bignum < Integer end