From: Martin Hansen Date: 2012-12-06T19:52:27+09:00 Subject: Re: Organizing code to avoid name space collision > How is it decided which of the two is included in regular code? I decide if I want backtrack or dynamic matching in the scripts I write - and include accordingly. >> I also explored your extend solution, but while that should work (I didn't >> test) it means that every time I instantiate a Seq object I need to >> extend it. I could accept that for the testing files, but I think it >> would obfuscate the regular code that uses Seq objects. > > Not at all. You can do it in #initialize. No caller would need to > change. OK, extend is the solution. Many thanks Robert. Cheers, Martin -- Posted via http://www.ruby-forum.com/.