On Wednesday 04 June 2008 13:53:26 Leslie Viljoen wrote:
> Holy macaroni, thanks for these replies!
> 
> What I am trying to accomplish here is the optional modification of
> core classes. So my CRC lib can handle useful calculations, and
> optionally add convenient methods to String and Fixnum too.

Probably included, then, rather than extended.

> That way people can have the convenience if they like, but they must
> explicitly authorise it with String.send(:include ..). It seems like a
> good plan to me, but the lack of a public String.include() method
> makes me think this is a very rare plan.

Generally, people don't expect to have to do more than a require to have the 
library ready to use. So I'd do that yourself, somewhere in the library file.