Hacker News new | past | comments | ask | show | jobs | submit login

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: