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
require_varargs.patch (422 Bytes)
···
--
Jamis Buck
jgb3@email.byu.edu
http://www.jamisbuck.org/jamis
Thanks for the patch. However, I believe that the latest CVS RDoc's already handle this, issuing a warning for all unknown parameter types.
Cheers
Dave
···
On Nov 4, 2004, at 8:17, Jamis Buck wrote:
I'm doing something funky in my code, where I have a custom #require method on an object
The delegating call kills rdoc with a "Unknown argument type to require: #<RubyToken::TkMULT:0x403c1c94>".
Dave Thomas wrote:
I'm doing something funky in my code, where I have a custom #require method on an object
The delegating call kills rdoc with a "Unknown argument type to require: #<RubyToken::TkMULT:0x403c1c94>".
Thanks for the patch. However, I believe that the latest CVS RDoc's already handle this, issuing a warning for all unknown parameter types.
Cheers
Dave
Good to know. Thanks, Dave!
- Jamis
···
On Nov 4, 2004, at 8:17, Jamis Buck wrote:
--
Jamis Buck
jgb3@email.byu.edu
http://www.jamisbuck.org/jamis