RDoc::Comment - ri - phpman

Look up a command

 

Markdown Format | JSON API | MCP Server Tool


= RDoc::Comment < Object

------------------------------------------------------------------------
= Includes:
RDoc::Text (from gem rdoc-7.2.0)

(from gem rdoc-7.2.0)
------------------------------------------------------------------------
A comment holds the text comment for a RDoc::CodeObject and provides a
unified way of cleaning it up and parsing it into an
RDoc::Markup::Document.

Each comment may have a different markup format set by #format=.  By
default 'rdoc' is used.  The :markup: directive tells RDoc which format
to use.

See RDoc Markup Reference(
rdoc-ref:doc/markup_reference/rdoc.rdoc@Directive+for+Specifying+RDoc+So
urce+Format ).
------------------------------------------------------------------------
= Constants:

DIRECTIVE_OR_ESCAPED_DIRECTIV_REGEXP:
  [not documented]


= Class methods:

  new
  normalize_comment_lines
  parse
  take_multiline_directive_value_lines

= Instance methods:

  document
  empty?
  encode!
  extract_call_seq
  file
  format
  format=
  line
  location
  normalize
  normalized=
  parse
  remove_private
  text
  text=
  to_s
  tomdoc?

= Attributes:

  attr_accessor file
  attr_accessor line
  attr_accessor location
  attr_reader format
  attr_reader text
  attr_reader to_s
  attr_writer document


Generated by phpMan Author: Che Dong Under GNU General Public License
2026-06-02 06:19 @216.73.216.198 CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 TransitionalValid CSS!