[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[RDOC] patch for vararg require

Jamis Buck

11/4/2004 2:18:00 PM

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...
2 Answers

Dave Thomas

11/4/2004 3:04:00 PM

0


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>".

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



Jamis Buck

11/4/2004 3:09:00 PM

0

Dave Thomas wrote:
>
> 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>".
>
>
> 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

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