> Also, a side question: is it normal/considered a best practice in ruby to monkey-patch built-in libraries like that?
No, it's not considered to be good practice. I think it's generally frowned on by more experienced folk.
However, ActiveSupport (which is part of Rails) does a lot of monkey-patching of the basic Ruby classes in this way, and that probably helps to perpetuate monkey-patching among newer developers.
No, it's not considered to be good practice. I think it's generally frowned on by more experienced folk.
However, ActiveSupport (which is part of Rails) does a lot of monkey-patching of the basic Ruby classes in this way, and that probably helps to perpetuate monkey-patching among newer developers.