RDoc: Really wrong output (Module#method instead of

  • Thread starter Iñaki Baz Castillo
  • Start date
I

Iñaki Baz Castillo

Hi, I'm getting really crazy with RDoc (tested in 1.8 and 1.9).

Basically I've a module containing a class containing a method. And
when I generate the rdoc, the HTML output show the method as a module
method instead of class. =C2=BF?=C2=BF?

However, if I test with a simple file:

-----------------
module MyModule
class MyClass
def initialize
puts "hello"
end
end
end
-----------------

then the output is correct.


I've checked and re-checked my code and is correct. In fact, I use it :)
Is there any known issue about it? Thanks.




--=20
I=C3=B1aki Baz Castillo
<[email protected]>
 
I

Iñaki Baz Castillo

2009/7/28 I=C3=B1aki Baz Castillo said:
Hi, I'm getting really crazy with RDoc (tested in 1.8 and 1.9).

Basically I've a module containing a class containing a method. And
when I generate the rdoc, the HTML output show the method as a module
method instead of class. =C2=BF?=C2=BF?

However, if I test with a simple file:

-----------------
module MyModule
=C2=A0 =C2=A0 =C2=A0 =C2=A0class MyClass
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0def initialize
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0puts "hello"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0end
=C2=A0 =C2=A0 =C2=A0 =C2=A0end
end

I've found the bug!

There is:


-----------------
module MyModule

class MyClass

RUBY_VERSION_CORE =3D case RUBY_VERSION
when /^1\.9\./
:RUBY_1_9
when /^1\.8\./
:RUBY_1_8
end

def initialize
puts "hello"
end

end
end
-----------------


Adding that "case" stament confuses RDoc and generates wrong output.
You can check it by creating the above file and generating rdoc. The
class method "initialize" will appear as a MyModule method.

Could somebody confirm it so I would report the bug? Thanks a lot.


--=20
I=C3=B1aki Baz Castillo
<[email protected]>
 
E

Eric Hodel

I've found the bug!

There is:


-----------------
module MyModule

class MyClass

RUBY_VERSION_CORE =3D case RUBY_VERSION
when /^1\.9\./
:RUBY_1_9
when /^1\.8\./
:RUBY_1_8
end

def initialize
puts "hello"
end

end
end
-----------------


Adding that "case" stament confuses RDoc and generates wrong output.
You can check it by creating the above file and generating rdoc. The
class method "initialize" will appear as a MyModule method.

Could somebody confirm it so I would report the bug? Thanks a lot.

Can you file it in the tracker?=
 

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

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top