| Class REXML::Text |
|
Represents text in an XML document
XML文書のテキストを表現します。
| Methods |
| Attributes |
| :raw | [RW] | |
| :string | [R] | string is String content, raw is a boolean stringはStringでrawはブーリアン(boolean)です。 |
| Included modules |
| Public Class methods |
| new(arg, respect_whitespace=false, parent=nil, pattern=PATTERN, raw=false) |
Constructor
@param arg if a String, the content is set to the String. If a Text, the object is shallowly cloned. If a Source, the source is parsed for text content up to the next element. If a parent, the parent of this object is set to the argument.
@param whitespace (boolean, optional) if true, whitespace is respected
@param parent (Parent, optional) if given, the parent of this object will be set to the argument
コンストラクタ
@もし、パラメータargがStringなら、その内容はStringに設定されます。 もし、Textなら、そのオブジェクトは浅くコピーされます。もし、 Sourceなら、そのソースは次の要素のテキストに向かってパースされま す。もし、Parentなら、argが、このオブジェクトの親に設定されます。
@パラメータwhitespace(ブーリアン(boolean)、任意(オプション))がも し、trueなら、空白が考慮されます。
@パラメータparent(Parent、任意(オプション))がもし、与えられてい れば、parentがこのオブジェクトの親に設定されるでしょう。
| parse_stream(source, listener) |
| Public Instance methods |
| clone() |
| <=>( other ) |
@param other a String or a Text
@return the result of (to_s <=> arg.to_s)
@(to_s <=> arg.to_s)の結果を返します。
| to_s() |
| write( writer, indent=-1 ) |