From: Charles Mills Date: 2005-01-08T12:41:26+09:00 Subject: Re: library method isolation William Morgan wrote: > Dear gurus, > > I often add utility methods to Hash, Enumerable, etc. For applications > this is fine, but for a library, I feel like I should avoid leaving such > "method detritus" around in users' namespaces. > I think your looking for selector namespaces. This is planned for Ruby 2.0. http://rubygarden.org/ruby?Rite Google will turn up more info. (...) > Is there a way to extend/modify existing classes or modules only within > the context of a particular ("library") module? > (...) > How do others deal with this? Not sure how people are currently dealing with this issue, other than ignoring it... -Charlie