Stupid RDoc question

How do I create a link to the documentation of a specific method in a
different class?

I can put #Class or #method in a comment, and it will turn into a
hyperlink in the html output – but #Class.method, #Class::method only
turn the class name into a link.

Nathan

Nathan Weston wrote:

How do I create a link to the documentation of a specific method in a
different class?

I can put #Class or #method in a comment, and it will turn into a
hyperlink in the html output – but #Class.method, #Class::method only
turn the class name into a link.

Class#method seems to work for me.

Nope, that doesn’t do it either.

Is there a particular version I should be using? I upgraded to 0.9 (I
was using the debian package, which is only 0.67), but that doesn’t
seem to have helped.

Nathan

Joel VanderWerf vjoel@PATH.Berkeley.EDU wrote in message news:3F6E8995.4090107@path.berkeley.edu

···

Nathan Weston wrote:

How do I create a link to the documentation of a specific method in a
different class?

I can put #Class or #method in a comment, and it will turn into a
hyperlink in the html output – but #Class.method, #Class::method only
turn the class name into a link.

Class#method seems to work for me.

Nathan Weston wrote:

Nope, that doesn’t do it either.

Hm. My mistake. I’ve typed Foo#bar in my comments but never noticed that
it doesn’t produce a link. Bummer…

···

Is there a particular version I should be using? I upgraded to 0.9 (I
was using the debian package, which is only 0.67), but that doesn’t
seem to have helped.

Nathan

Joel VanderWerf vjoel@PATH.Berkeley.EDU wrote in message news:3F6E8995.4090107@path.berkeley.edu

Nathan Weston wrote:

How do I create a link to the documentation of a specific method in a
different class?

I can put #Class or #method in a comment, and it will turn into a
hyperlink in the html output – but #Class.method, #Class::method only
turn the class name into a link.

Class#method seems to work for me.

Let me look at this. Previously this was hard to do, but I recently
rewrote the scope resolution stuff, so I should now be able to produce
hyperlinks for this kind of construct.

Cheers

Dave

···

On Tuesday, Sep 23, 2003, at 00:50 Europe/Copenhagen, Joel VanderWerf wrote:

Nathan Weston wrote:

Nope, that doesn’t do it either.

Hm. My mistake. I’ve typed Foo#bar in my comments but never noticed
that it doesn’t produce a link. Bummer…

OK - the latest CVS now supports linking into methods in other classes.

Cheers

Dave

···

On Tuesday, Sep 23, 2003, at 08:14 Europe/Copenhagen, Dave Thomas wrote:

Let me look at this. Previously this was hard to do, but I recently
rewrote the scope resolution stuff, so I should now be able to produce
hyperlinks for this kind of construct.

Dave Thomas wrote:

Let me look at this. Previously this was hard to do, but I recently
rewrote the scope resolution stuff, so I should now be able to produce
hyperlinks for this kind of construct.

OK - the latest CVS now supports linking into methods in other classes.

Hm. I’m stil not getting hyperlinks. I got the cvs, but an example like
this doesn’t yield a link:

class MyClass
def foo; end

See MyClass#foo

def bar; end
end

The rdoc command I’m using is simply ‘rdoc t.rb’, where t.rb is just the
code above.

$ rdoc -v
RDoc Vgs: 2003/08/22 12:33:37 (1.72)

···

On Tuesday, Sep 23, 2003, at 08:14 Europe/Copenhagen, Dave Thomas wrote:

I’m tied up at a client’s until next week – I promise to look at it
then.

Cheers

Dave

···

On Tuesday, Sep 23, 2003, at 19:30 Europe/Copenhagen, Joel VanderWerf wrote:

class MyClass
def foo; end

See MyClass#foo

def bar; end
end

I hate it when people say this, but… I tried this code example here
in RDoc and it worked for me…

Cheers

Dave

···

On Thursday, Sep 25, 2003, at 08:55 Europe/Copenhagen, Dave Thomas wrote:

class MyClass
def foo; end

See MyClass#foo

def bar; end
end

I’m tied up at a client’s until next week – I promise to look at it
then.

Hi,

I am trying to embed ruby into an application
( http://xpertmud.sf.net if anyone cares)

and I have a little problem.
I got the basics working just fine. ruby loads, and executes code, and I catch
any errors.

So far so good.
But I have a few questions:

  1. Is there any way to uninitialize the interpreter if I want to unload it ?

  2. is there any way to have more than one instance of ruby, or at least is
    there a way to have several seperated namespaces/Bindings at the same time
    running so I have several global namespaces for different instances. I looked
    through the docs and didnt find anything.

Thans in advance.

Peter