Hey Guys,
Is there a way to turn off the rdoc nodoc tag, for example:
#:nodoc:
def not_documented
puts ‘hello’
end
#:some_tag_to_reenable_rdoc:
I do something
def document_me
puts ‘world’
end
Thijs
Hey Guys,
Is there a way to turn off the rdoc nodoc tag, for example:
#:nodoc:
def not_documented
puts ‘hello’
end
#:some_tag_to_reenable_rdoc:
def document_me
puts ‘world’
end
Thijs
I think it’s #:doc:.
#documented
#–
#non documented
#++
#documented
simply using # :doc
On Jan 15, 2013, at 07:43 , Thijs De vries [email protected] wrote:
Hey Guys,
Is there a way to turn off the rdoc nodoc tag, for example:
Do this instead:
#:doc: seems to work.
Am Wed, 16 Jan 2013 00:43:13 +0900
schrieb Thijs De vries [email protected]:
def document_me
puts ‘world’
endThijs
This is incorrect usage of the :nodoc: directive. It is meant to be
used like this:
def not_documented # :nodoc:
puts ‘hello’
end
This will automatically make RDoc document anything else but those
methods/modules/classes that are marked with :nodoc:. In order to not
document an entire bunch of methods at once, you can use :stopdoc:
and :startdoc::
def foo
end
def bar
end
def baz
end
def blubb
end
See here: http://rdoc.rubyforge.org/RDoc/Markup.html#label-Directives
Vale,
Marvin
–
Blog: http://pegasus-alpha.eu/blog
ASCII-Ribbon-Kampagne () | ASCII Ribbon Campaign ()
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs