|
323 | 323 | #
|
324 | 324 | # ---
|
325 | 325 | #
|
| 326 | +# ==== Directives |
| 327 | +# |
| 328 | +# ===== Directives for Allowing or Suppressing Documentation |
| 329 | +# |
| 330 | +# Each directive described in this section must appear on a line by itself. |
| 331 | +# |
| 332 | +# - [<tt>:stopdoc:</tt>] |
| 333 | +# Specifies that \RDoc should ignore markup |
| 334 | +# until next <tt>:startdoc:</tt> directive or end-of-file. |
| 335 | +# - [<tt>:startdoc:</tt>] |
| 336 | +# Specifies that \RDoc should resume parsing markup. |
| 337 | +# - [<tt>:enddoc:</tt>] |
| 338 | +# Specifies that \RDoc should ignore markup to end-of-file |
| 339 | +# regardless of other directives. |
| 340 | +# |
| 341 | +# For Ruby code, but not for other \RDoc sources, |
| 342 | +# there is a shorthand for [<tt>:stopdoc:</tt>] and [<tt>:startdoc:</tt>]: |
| 343 | +# |
| 344 | +# # Documented. |
| 345 | +# #-- |
| 346 | +# # Not documented. |
| 347 | +# #++ |
| 348 | +# # Documented. |
| 349 | +# |
| 350 | +# ===== Directive for Specifying \RDoc Source Format |
| 351 | +# |
| 352 | +# This directive described must appear on a line by itself. |
| 353 | +# |
| 354 | +# - [<tt>:markup: _type_</tt>] |
| 355 | +# Specifies the format for the \RDoc input. |
| 356 | +# Parameter +type+ is one of +markdown+, +rd+, +rdoc+, +tomdoc+. |
| 357 | +# |
| 358 | +# ===== Directives for HTML Output |
| 359 | +# |
| 360 | +# Each directive described in this section must appear on a line by itself. |
| 361 | +# |
| 362 | +# - [<tt>:title: _text_</tt>] |
| 363 | +# Specifies the title for the HTML output. |
| 364 | +# - [<tt>:main: _file_name_</tt>] |
| 365 | +# Specifies the HTML file to be displayed first. |
| 366 | +# |
| 367 | +# ===== Directives for Method Documentation |
| 368 | +# |
| 369 | +# - [<tt>:call-seq:</tt>] |
| 370 | +# For the given method, specifies the calling sequence to be reported in the HTML, |
| 371 | +# overriding the actual calling sequence in the Ruby code. |
| 372 | +# See method #call_seq_directive. |
| 373 | +# - [<tt>:args: _arg_names_</tt> (aliased as <tt>:arg</tt>)] |
| 374 | +# For the given method, specifies the arguments to be reported in the HTML, |
| 375 | +# overriding the actual arguments in the Ruby code. |
| 376 | +# See method #args_directive. |
| 377 | +# - [<tt>:yields: _arg_names_</tt> (aliased as <tt>:yield:</tt>)] |
| 378 | +# For the given method, specifies the yield arguments to be reported in the HTML, |
| 379 | +# overriding the actual yield in the Ruby code. |
| 380 | +# See method #yields_directive. |
| 381 | +# |
| 382 | +# Note that \RDoc can build the calling sequence for a Ruby-coded method, |
| 383 | +# but not for other languages. |
| 384 | +# You may want to override that by explicitly giving a <tt>:call-seq:</tt> |
| 385 | +# directive if you want to include: |
| 386 | +# |
| 387 | +# - A return type, which is not automatically inferred. |
| 388 | +# - Multiple calling sequences. |
| 389 | +# |
| 390 | +# ===== Directives for Organizing Documentation |
| 391 | +# |
| 392 | +# By default, \RDoc groups: |
| 393 | +# |
| 394 | +# - Singleton methods together in alphabetical order. |
| 395 | +# - Instance methods and their aliases together in alphabetical order. |
| 396 | +# - Attributes and their aliases together in alphabetical order. |
| 397 | +# |
| 398 | +# You can use directives to modify those behaviors. |
| 399 | +# |
| 400 | +# - [<tt>:section: _section_title_</tt>] |
| 401 | +# |
| 402 | +# Directive <tt>:section: <em>section_title</em></tt> specifies that |
| 403 | +# following methods are to be grouped into a section |
| 404 | +# with the given <em>section_title</em> as its heading. |
| 405 | +# This directive remains in effect until another such directive is given, |
| 406 | +# but may be temporarily overridden by directive <tt>:category:</tt>. |
| 407 | +# See below. |
| 408 | +# |
| 409 | +# Directive <tt>:section:</tt> with no title reverts to the default section. |
| 410 | +# |
| 411 | +# The comment block containing this directive: |
| 412 | +# |
| 413 | +# - Must be separated by a blank line from the documentation for the next item. |
| 414 | +# - May have one or more lines preceding the directive. |
| 415 | +# These will be removed, along with any trailing lines that match them. |
| 416 | +# Such lines may be visually helpful. |
| 417 | +# - Lines of text that are not so removed become the descriptive text |
| 418 | +# for the section. |
| 419 | +# |
| 420 | +# Example: |
| 421 | +# |
| 422 | +# # ---------------------------------------- |
| 423 | +# # :section: My Section |
| 424 | +# # This is the section that I wrote. |
| 425 | +# # See it glisten in the noon-day sun. |
| 426 | +# # ---------------------------------------- |
| 427 | +# |
| 428 | +# ## |
| 429 | +# # Comment for some_method |
| 430 | +# def some_method |
| 431 | +# # ... |
| 432 | +# end |
| 433 | +# |
| 434 | +# You can use directive <tt>:category:</tt> to temporarily |
| 435 | +# override the current section. |
| 436 | +# |
| 437 | +# - [<tt>:category: _section_title_</tt>] |
| 438 | +# |
| 439 | +# Directive <tt>:category: <em>section_title</em></tt> specifies that |
| 440 | +# just one following method is to be included in the given section. |
| 441 | +# Subsequent methods are to be grouped into the current section. |
| 442 | +# |
| 443 | +# Directive <tt>:category:</tt> with no title specifies that just one |
| 444 | +# following method is to be included in the default section. |
| 445 | +# |
| 446 | +# ===== Directive for Including a File |
| 447 | +# |
| 448 | +# - [<tt>:include: _filename_</tt>] |
| 449 | +# |
| 450 | +# Include the contents of the named file at this point. |
| 451 | +# This directive must appear alone on one line, possibly preceded by spaces. |
| 452 | +# In this position, it can be escaped with a backslash in front of the first colon. |
| 453 | +# |
| 454 | +# The file is searched for in the directories |
| 455 | +# given with the <tt>--include</tt> command-line option, |
| 456 | +# or in the current directory by default. |
| 457 | +# The file content is shifted to have the same indentation as the colon |
| 458 | +# at the start of the directive. |
| 459 | +# |
| 460 | +# ===== Directives in Trailing Comments |
| 461 | +# |
| 462 | +# Each \RDoc directive in this section appears in a trailing |
| 463 | +# comment in a line of code. |
| 464 | +# |
| 465 | +# - [<tt>:nodoc:</tt>] |
| 466 | +# - Appears in a trailing comment on a line of code |
| 467 | +# that defines a class, module, method, alias, constant, or attribute. |
| 468 | +# - Specifies that the defined object should not be documented. |
| 469 | +# - [<tt>:nodoc: all</tt>] |
| 470 | +# - Appears in a trailing comment on a line of code |
| 471 | +# that defines a class or module. |
| 472 | +# - Specifies that the class or module should not be documented. |
| 473 | +# By default, however, a nested class or module _will_ be documented |
| 474 | +# - [<tt>:doc:</tt>] |
| 475 | +# - Appears in a trailing comment on a line of code |
| 476 | +# that defines a class, module, method, alias, constant, or attribute. |
| 477 | +# - Specifies the defined object should be documented, even if otherwise |
| 478 | +# would not be documented. |
| 479 | +# - [<tt>:notnew:</tt> (aliased as <tt>:not_new</tt> and <tt>:not-new:</tt>)] |
| 480 | +# - Appears in a trailing comment on a line of code |
| 481 | +# that defines instance method +initialize+. |
| 482 | +# - Specifies that singleton method +new+ should not be documented. |
| 483 | +# By default, Ruby fakes a corresponding singleton method +new+, |
| 484 | +# which \RDoc includes in the documentaton. |
| 485 | +# Note that instance method +initialize+ is private, and so by default |
| 486 | +# is not documented. |
| 487 | +# |
326 | 488 | # === Text Markup
|
327 | 489 | #
|
328 | 490 | # Text in a paragraph, list item (any type), or heading
|
|
624 | 786 | #
|
625 | 787 | # {rdoc-image:https://www.ruby-lang.org/images/header-ruby-logo@2x.png}[./Alias.html]
|
626 | 788 | #
|
627 |
| -# === Directives |
628 |
| -# |
629 |
| -# ==== Directives for Allowing or Suppressing Documentation |
630 |
| -# |
631 |
| -# Each directive described in this section must appear on a line by itself. |
632 |
| -# |
633 |
| -# - [<tt>:stopdoc:</tt>] |
634 |
| -# Specifies that \RDoc should ignore markup |
635 |
| -# until next <tt>:startdoc:</tt> directive or end-of-file. |
636 |
| -# - [<tt>:startdoc:</tt>] |
637 |
| -# Specifies that \RDoc should resume parsing markup. |
638 |
| -# - [<tt>:enddoc:</tt>] |
639 |
| -# Specifies that \RDoc should ignore markup to end-of-file |
640 |
| -# regardless of other directives. |
641 |
| -# |
642 |
| -# For Ruby code, but not for other \RDoc sources, |
643 |
| -# there is a shorthand for [<tt>:stopdoc:</tt>] and [<tt>:startdoc:</tt>]: |
644 |
| -# |
645 |
| -# # Documented. |
646 |
| -# #-- |
647 |
| -# # Not documented. |
648 |
| -# #++ |
649 |
| -# # Documented. |
650 |
| -# |
651 |
| -# ==== Directive for Specifying \RDoc Source Format |
652 |
| -# |
653 |
| -# This directive described must appear on a line by itself. |
654 |
| -# |
655 |
| -# - [<tt>:markup: _type_</tt>] |
656 |
| -# Specifies the format for the \RDoc input. |
657 |
| -# Parameter +type+ is one of +markdown+, +rd+, +rdoc+, +tomdoc+. |
658 |
| -# |
659 |
| -# ==== Directives for HTML Output |
660 |
| -# |
661 |
| -# Each directive described in this section must appear on a line by itself. |
662 |
| -# |
663 |
| -# - [<tt>:title: _text_</tt>] |
664 |
| -# Specifies the title for the HTML output. |
665 |
| -# - [<tt>:main: _file_name_</tt>] |
666 |
| -# Specifies the HTML file to be displayed first. |
667 |
| -# |
668 |
| -# ==== Directives for Method Documentation |
669 |
| -# |
670 |
| -# - [<tt>:call-seq:</tt>] |
671 |
| -# For the given method, specifies the calling sequence to be reported in the HTML, |
672 |
| -# overriding the actual calling sequence in the Ruby code. |
673 |
| -# See method #call_seq_directive. |
674 |
| -# - [<tt>:args: _arg_names_</tt> (aliased as <tt>:arg</tt>)] |
675 |
| -# For the given method, specifies the arguments to be reported in the HTML, |
676 |
| -# overriding the actual arguments in the Ruby code. |
677 |
| -# See method #args_directive. |
678 |
| -# - [<tt>:yields: _arg_names_</tt> (aliased as <tt>:yield:</tt>)] |
679 |
| -# For the given method, specifies the yield arguments to be reported in the HTML, |
680 |
| -# overriding the actual yield in the Ruby code. |
681 |
| -# See method #yields_directive. |
682 |
| -# |
683 |
| -# Note that \RDoc can build the calling sequence for a Ruby-coded method, |
684 |
| -# but not for other languages. |
685 |
| -# You may want to override that by explicitly giving a <tt>:call-seq:</tt> |
686 |
| -# directive if you want to include: |
687 |
| -# |
688 |
| -# - A return type, which is not automatically inferred. |
689 |
| -# - Multiple calling sequences. |
690 |
| -# |
691 |
| -# ==== Directives for Organizing Documentation |
692 |
| -# |
693 |
| -# By default, \RDoc groups: |
694 |
| -# |
695 |
| -# - Singleton methods together in alphabetical order. |
696 |
| -# - Instance methods and their aliases together in alphabetical order. |
697 |
| -# - Attributes and their aliases together in alphabetical order. |
698 |
| -# |
699 |
| -# You can use directives to modify those behaviors. |
700 |
| -# |
701 |
| -# - [<tt>:section: _section_title_</tt>] |
702 |
| -# |
703 |
| -# Directive <tt>:section: <em>section_title</em></tt> specifies that |
704 |
| -# following methods are to be grouped into a section |
705 |
| -# with the given <em>section_title</em> as its heading. |
706 |
| -# This directive remains in effect until another such directive is given, |
707 |
| -# but may be temporarily overridden by directive <tt>:category:</tt>. |
708 |
| -# See below. |
709 |
| -# |
710 |
| -# Directive <tt>:section:</tt> with no title reverts to the default section. |
711 |
| -# |
712 |
| -# The comment block containing this directive: |
713 |
| -# |
714 |
| -# - Must be separated by a blank line from the documentation for the next item. |
715 |
| -# - May have one or more lines preceding the directive. |
716 |
| -# These will be removed, along with any trailing lines that match them. |
717 |
| -# Such lines may be visually helpful. |
718 |
| -# - Lines of text that are not so removed become the descriptive text |
719 |
| -# for the section. |
720 |
| -# |
721 |
| -# Example: |
722 |
| -# |
723 |
| -# # ---------------------------------------- |
724 |
| -# # :section: My Section |
725 |
| -# # This is the section that I wrote. |
726 |
| -# # See it glisten in the noon-day sun. |
727 |
| -# # ---------------------------------------- |
728 |
| -# |
729 |
| -# ## |
730 |
| -# # Comment for some_method |
731 |
| -# def some_method |
732 |
| -# # ... |
733 |
| -# end |
734 |
| -# |
735 |
| -# You can use directive <tt>:category:</tt> to temporarily |
736 |
| -# override the current section. |
737 |
| -# |
738 |
| -# - [<tt>:category: _section_title_</tt>] |
739 |
| -# |
740 |
| -# Directive <tt>:category: <em>section_title</em></tt> specifies that |
741 |
| -# just one following method is to be included in the given section. |
742 |
| -# Subsequent methods are to be grouped into the current section. |
743 |
| -# |
744 |
| -# Directive <tt>:category:</tt> with no title specifies that just one |
745 |
| -# following method is to be included in the default section. |
746 |
| -# |
747 |
| -# ==== Directive for Including a File |
748 |
| -# |
749 |
| -# - [<tt>:include: _filename_</tt>] |
750 |
| -# |
751 |
| -# Include the contents of the named file at this point. |
752 |
| -# This directive must appear alone on one line, possibly preceded by spaces. |
753 |
| -# In this position, it can be escaped with a backslash in front of the first colon. |
754 |
| -# |
755 |
| -# The file is searched for in the directories |
756 |
| -# given with the <tt>--include</tt> command-line option, |
757 |
| -# or in the current directory by default. |
758 |
| -# The file content is shifted to have the same indentation as the colon |
759 |
| -# at the start of the directive. |
760 |
| -# |
761 |
| -# == Markup in Code |
762 |
| -# |
763 |
| -# === Directives in Trailing Comments |
764 |
| -# |
765 |
| -# Each \RDoc directive in this section appears in a trailing |
766 |
| -# comment in a line of code. |
767 |
| -# |
768 |
| -# - [<tt>:nodoc:</tt>] |
769 |
| -# - Appears in a trailing comment on a line of code |
770 |
| -# that defines a class, module, method, alias, constant, or attribute. |
771 |
| -# - Specifies that the defined object should not be documented. |
772 |
| -# - [<tt>:nodoc: all</tt>] |
773 |
| -# - Appears in a trailing comment on a line of code |
774 |
| -# that defines a class or module. |
775 |
| -# - Specifies that the class or module should not be documented. |
776 |
| -# By default, however, a nested class or module _will_ be documented |
777 |
| -# - [<tt>:doc:</tt>] |
778 |
| -# - Appears in a trailing comment on a line of code |
779 |
| -# that defines a class, module, method, alias, constant, or attribute. |
780 |
| -# - Specifies the defined object should be documented, even if otherwise |
781 |
| -# would not be documented. |
782 |
| -# - [<tt>:notnew:</tt> (aliased as <tt>:not_new</tt> and <tt>:not-new:</tt>)] |
783 |
| -# - Appears in a trailing comment on a line of code |
784 |
| -# that defines instance method +initialize+. |
785 |
| -# - Specifies that singleton method +new+ should not be documented. |
786 |
| -# By default, Ruby fakes a corresponding singleton method +new+, |
787 |
| -# which \RDoc includes in the documentaton. |
788 |
| -# Note that instance method +initialize+ is private, and so by default |
789 |
| -# is not documented. |
790 |
| -# |
791 | 789 | # == Documentation Derived from Ruby Code
|
792 | 790 | #
|
793 | 791 | # [Class]
|
|
0 commit comments