From: Joel VanderWerf Date: 2003-05-12T01:57:51+09:00 Subject: Re: [RCR?] Enumerable#each with arguments ts wrote: >>>>>>"J" == Joel VanderWerf writes: > > > J> elt_parts = elt.elements.collect('part') # XPath query > > bdbxml has the same problem : see how it try to fix it. I don't understand. Neither of your #each methods takes arguments. > J> The #collect call fails because it requires 0 arguments. But each can be > J> called with an argument, so the following does what I want: > > What are the arguments given to #each ? In the case of instances of REXML::Elements#each, an optional XPath string.