--------------030007020307000708030103
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

I'm doing something funky in my code, where I have a custom #require 
method on an object and I delegate a #require call on another object to 
the first one. I.e., something like this:

   def require( *args )
     @object.require( *args )
   end

The delegating call kills rdoc with a "Unknown argument type to require: 
#<RubyToken::TkMULT:0x403c1c94>".

The attached patch fixes this, causing such constructs to be ignored 
with a warning (much like dynamic strings).

- Jamis

-- 
Jamis Buck
jgb3 / email.byu.edu
http://www.jamisbuck.org/jamis

--------------030007020307000708030103
Content-Type: text/x-patch;
 nameequire_varargs.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filenameequire_varargs.patch"

--- parse_rb.rb.original	2004-11-04 07:08:19.430736848 -0700
+++ parse_rb.rb	2004-11-04 07:11:52.964274816 -0700
@@ -2405,6 +2405,10 @@
       name  k.name
     when TkDSTRING
       warn "Skipping require of dynamic string: #{tk.text}"
+    when TkMULT
+      warn "Skipping require of variable arity"
+      skip_tkspace_comment
+      get_tk
     else
       error("Unknown argument type to require: #{tk}")
     end

--------------030007020307000708030103--