From: Robert Klemme Date: 2012-12-06T21:28:46+09:00 Subject: Re: Organizing code to avoid name space collision On Thu, Dec 6, 2012 at 11:52 AM, Martin Hansen wrote: >> 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. You're welcome! Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/