Rdoc inside method or function definition

Hi All,

Could it be possible to have documentation comments for the rdoc inside
a method definition as:

Traditional:

comment 1

comment 2

def foo(*args)

end

what I would like:

def foo(*args)

comment 1

comment 2


end

And still appear in the rdoc document?

Is this a silly question?

Regards,

Eduardo

You can’t. But when the method is documented you can show the source
code(in the .html generated), and there you can see the comments inside
the method definition.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs