RDOC Bug

J

Jim Weirich

I have a function like this ...

def f(str)
if str =~ %r{/CVS/}
puts "CVS Directory"
end
end

When I run this through RDoc and view the source, I see ...

def f(str)
if str =~ %{/CVS/}
puts "CVS Directory"
end
end

In case you missed it, the difference is subtle. %r{CVS} is a regular
expression in the first, but RDoc prints it as %{CVS}, which is just a
quoted string.
 
G

Gavin Sinclair

I have a function like this ...
def f(str)
if str =~ %r{/CVS/}
puts "CVS Directory"
end
end
When I run this through RDoc and view the source, I see ...
def f(str)
if str =~ %{/CVS/}
puts "CVS Directory"
end
end
In case you missed it, the difference is subtle. %r{CVS} is a regular
expression in the first, but RDoc prints it as %{CVS}, which is just a
quoted string.

A related bug is this: if there's a comment inside the method, RDoc
will display a blank line after it in the "view source" area.

Let me know if you need more info to reproduce it, Dave.

Gavin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,147
Messages
2,570,833
Members
47,380
Latest member
AlinaBlevi

Latest Threads

Top