[rdoc] file vs. class comments

  • Thread starter Michael Neumann
  • Start date
M

Michael Neumann

Hi,

If I've following file test.rb:

# this is my class
class MyClass
...
end

# other class
class OtherClass
end

and run rdoc over it, the comment for MyClass is also the comment for
the test.rb file. I'd like more if there were in this case no comment
for test.rb, or better, if the classes defined in this file were listed.

To document test.rb, you'd have to write:

# documentation
# for test.rb


# this is my class
class MyClass
...


Regards,

Michael
 
B

Brian Schröder

Hi,

If I've following file test.rb:

# this is my class
class MyClass
...
end

# other class
class OtherClass
end

and run rdoc over it, the comment for MyClass is also the comment for
the test.rb file. I'd like more if there were in this case no comment
for test.rb, or better, if the classes defined in this file were listed.

To document test.rb, you'd have to write:

# documentation
# for test.rb


# this is my class
class MyClass
...


I'd think that it would be enough to include one line in the beginning of the
file to inhibit the comment.

#

# this is my class
class MyClass..


Regards,

Brian
 

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

Similar Threads


Members online

No members online now.

Forum statistics

Threads
474,163
Messages
2,570,897
Members
47,434
Latest member
TobiasLoan

Latest Threads

Top