Hi,
Is it possible that rdoc generates a link to an instance method that is
in another class? I tried MyClass#instance_method and
MyClass.instance_method, but both just generated raw text.
Thank you.
Hi,
Is it possible that rdoc generates a link to an instance method that is
in another class? I tried MyClass#instance_method and
MyClass.instance_method, but both just generated raw text.
Thank you.
On Mar 21, 2009, at 14:33, Fernando P. wrote:
Is it possible that rdoc generates a link to an instance method that
is
in another class? I tried MyClass#instance_method and
MyClass.instance_method, but both just generated raw text.
MyClass#instance_method is correct:
$ cat lib/foo.rb
class MyFirstClass
def a_method(p1, p2)
end
end
$ cat lib/bar.rb
class Bar
end
$ rdoc .
Parsing sources with 2 thread(s)…
100% [ 2/ 2] lib/foo.rb
Generating Darkfish…
Files: 2
Classes: 2
Modules: 0
Methods: 1
Elapsed: 0.1s
$ ack ‘First call’ doc/
doc/Bar.html
99:First call MyFirstClass#a_method
$ rdoc --version
rdoc 2.4.1
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs