From: "Bartosz DziewoƄski" Date: 2012-06-20T03:01:42+09:00 Subject: Re: Looking for a better way to add a method to a core class than monkey patching I think there's nothing wrong with monkeypatching (as long as you're adding methods, not overriding them). If you want to be on the extra-safe side, you could just create a module with the method and have the users of your library actually include it in String. There should be noticeable performance difference between the two ways. -- Matma Rex