| Class REXML::Child |
|
A Child object is something contained by a parent, and this class contains methods to support that. Most user code will not use this class directly.
Childオブジェクトはparentに含まれています。そして、このクラスは parentをサポートするメソッドを含んでいます。大部分のユーザのコード はこのクラスを直接使わないでしょう。
| Methods |
| Attributes |
| :parent | [R] | The Parent of this object このオブジェクトのParentです。 |
| Included modules |
| Public Class methods |
| new( parent = nil ) |
Constructor. Any inheritors of this class should call super to make sure this method is called.
@param parent if supplied, the parent of this child will be set to the supplied value, and self will be added to the parent
コンストラクタ。このクラスのいくつかのインスタンスはこのメソッド が呼ばれているのを確かめるためにsuperを呼ぶべきです。
@もし、パラメータparentが与えられれば、この子のparentに与えられた値 が設定されるでしょう。そして、自分自身はこのparentに加えられるで しょう。
| once(*ids) |
| Public Instance methods |
| replace_with( child ) |
Replaces this object with another object. Basically, calls Parent.replace_child
@return self
このオブジェクトを別のオブジェクトで置き換えます。基本的に、 Parent.replace_childを呼びます。
@自分自身を返します。
| remove() |
Removes this child from the parent.
@return self
parentからこの子を取り除きます。
@自分自身を返します。
| parent=( other ) |
| next_sibling=( other ) |
| previous_sibling=(other) |
| document() |
@return the document this child belongs to, or nil if this child belongs to no document
@この子が属するdocumentを返します。もし、この子がdocumentに属し ていなければnilを返します。
| bytes() |
This doesn't yet handle encodings
これはまだエンコードを取り扱っていません。