On Thu, Dec 6, 2012 at 11:52 AM, Martin Hansen <[email protected]> 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/ -- You received this message because you are subscribed to the Google Groups ruby-talk-google group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at https://groups.google.com/d/forum/ruby-talk-google?hl=en
