From: Jamis Buck Date: 2004-11-04T23:17:31+09:00 Subject: [RDOC] patch for vararg require --------------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: #". 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; name="require_varargs.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="require_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 = tk.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--