Предположим, у меня есть следующий класс.
class Foo
# I want the following to appear as-is in my documentation, not as an anchor tag.
#
# http://www.google.com/
#
def bar
puts "bar"
end
end
И затем я запускаю его через rdoc.
$ rdoc foo.rb
Он генерирует это:
<div class="method-description">
<p>
I want the following to appear as-is in my documentation, not as an anchor tag.
</p>
<p>
<a href="http://www.google.com">www.google.com</a>/
</p>
</div>
Я хочу, чтобы вместо этого генерировалось что-то вроде этого:
<div class="method-description">
<p>
I want the following to appear as-is in my documentation, not as an anchor tag.
</p>
<p>
http://www.google.com/
</p>
</div>
Каков наилучший способ сделать это?