News for hackers. Stuff that matters.
Re:Responsible Monkeypatching in Ruby by eloisius on Friday August 27, 2021 @06:11AM (#28326015)
In Ruby at least this example would just be an instance method named Weeks on the kernel class and it wouldn’t really be any more clunky to implement than the ActiveSupport flavor. However because Ruby you’re still reopening a class. You’re just adding a method to Kernel instead of Integer.

There are no comments on this comment yet.