Class REXML::Comment
In: rexml/comment.rb

Represents an XML comment; that is, text between <!-- ... -->

XMLでのコメントに置き換えます。;それは、<!-- ... -->の間のテキスト です。

Methods
<=>    ==    clone    new    parse_stream    write   
Attributes
:string  [RW] 
Included modules
Comparable
Public Class methods
new( first, second = nil )

Constructor. The first argument can be one of three types:

@param first If String, the contents of this comment are set to the argument. If Comment, the argument is duplicated. If Source, the argument is scanned for a comment.

@param second If the first argument is a Source, this argument should be nil, not supplied, or a Parent to be set as the parent of this object

コンストラクタ。最初の引数は3つの型のうちの1つをとることができま す。

@もし、パラメータfirstがStringなら、このコメントの内容はその引数 に設定されます。もし、Commentなら、この引数は二重になります。も し、Sourceなら、この引数はコメントを目指して調べられます。

@最初の引数がSourceの時のパラメータsecondはnilか、与えられな いか、おるいはこのオブジェクトのparentを設定するためにParentでな ければなりません。

parse_stream(source, listener)
Public Instance methods
clone()
write( output, indent=-1 )
<=>(other)

Compares this Comment to another; the contents of the comment are used in the comparison.

このCommentを外のCommentと比較します。;このコメントの内容が比較 に使われます。

==( other )

Compares this Comment to another; the contents of the comment are used in the comparison.

このCommentを外のCommentと比較します。;このコメントの内容が比較 に使われます。