# Preventing automatic hyperlinks in rdoc

**URL:** <https://www.ruby-forum.com/t/preventing-automatic-hyperlinks-in-rdoc/136381>\
**Category:** Ruby\
**Created:** [May 1, 2008, 1:00pm UTC](https://www.ruby-forum.com/t/preventing-automatic-hyperlinks-in-rdoc/136381 "2008-05-01T13:00:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![c1sc0](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e5b9ba/32.png) [@c1sc0](https://www.ruby-forum.com/u/c1sc0)\
**Post date:** [May 1, 2008, 1:00pm UTC](https://www.ruby-forum.com/t/preventing-automatic-hyperlinks-in-rdoc/136381/1 "2008-05-01T13:00:49Z")

</div>

How can I prevent rdoc from automatically hyperlinking to methods?

For example, if I have run rdoc on the following code:

class Searcher

# Performs a search

def search(params)  
end

# Uses search to find things by name

def search\_by\_name(name)  
end  
end

then the word “search” is a hyperlink in both “Performs a search” and  
“Uses  
search to find things by name”. I would like it to only be a hyperlink  
in  
“Uses search to find things by name” (i.e. I want “Performs a search” to  
be  
plain text).

Thanks,

Francis.

---

<div class="post-metadata">

**Author:** ![c1sc0](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e5b9ba/32.png) [@c1sc0](https://www.ruby-forum.com/u/c1sc0)\
**Post date:** [May 1, 2008, 5:25pm UTC](https://www.ruby-forum.com/t/preventing-automatic-hyperlinks-in-rdoc/136381/2 "2008-05-01T17:25:06Z")

</div>

On Thu, May 1, 2008 at 1:00 PM, Francis D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> def search\_by\_name(name)  
> Francis.  
> See [http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/297786](http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/297786)  
> (=install rdoc 2.0 and prefix by "")

J.

---

<div class="post-metadata">

**Author:** ![c1sc0](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e5b9ba/32.png) [@c1sc0](https://www.ruby-forum.com/u/c1sc0)\
**Post date:** [May 1, 2008, 5:50pm UTC](https://www.ruby-forum.com/t/preventing-automatic-hyperlinks-in-rdoc/136381/3 "2008-05-01T17:50:28Z")

</div>

Jano S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) writes:

> On Thu, May 1, 2008 at 1:00 PM, Francis D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > How can I prevent rdoc from automatically hyperlinking to methods?
> 
> See [http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/297786](http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/297786)  
> (=install rdoc 2.0 and prefix by "")

Thanks! I should have checked to see if there was a newer version of  
rdoc  
than the one I was using…

Francis.
